about summary refs log tree commit diff
path: root/tests/codegen/array-codegen.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-07-09 16:33:35 +0200
committerGitHub <noreply@github.com>2023-07-09 16:33:35 +0200
commit4406a92cd19db9d5d3d4c65d11a855bed8816503 (patch)
treedeaf2ffa77890bfff0a9a01e5221d5cbccc96660 /tests/codegen/array-codegen.rs
parentba37a69d30fc6ffc0c2589eb59e936c261b36e76 (diff)
parentd7983a2f231a279984fc70eb428b936930eaa45c (diff)
downloadrust-4406a92cd19db9d5d3d4c65d11a855bed8816503.tar.gz
rust-4406a92cd19db9d5d3d4c65d11a855bed8816503.zip
Rollup merge of #111618 - cjgillot:name-return-place, r=tmiasko
Always name the return place.

MIR opts more and more consider `_0` as just another local, so there is no point in keeping the special case in debug-info logic.
Diffstat (limited to 'tests/codegen/array-codegen.rs')
-rw-r--r--tests/codegen/array-codegen.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/codegen/array-codegen.rs b/tests/codegen/array-codegen.rs
index 98488eb92ee..71acd781549 100644
--- a/tests/codegen/array-codegen.rs
+++ b/tests/codegen/array-codegen.rs
@@ -6,10 +6,10 @@
 // CHECK-LABEL: @array_load
 #[no_mangle]
 pub fn array_load(a: &[u8; 4]) -> [u8; 4] {
-    // CHECK: %0 = alloca [4 x i8], align 1
+    // CHECK: %_0 = alloca [4 x i8], align 1
     // CHECK: %[[TEMP1:.+]] = load <4 x i8>, ptr %a, align 1
-    // CHECK: store <4 x i8> %[[TEMP1]], ptr %0, align 1
-    // CHECK: %[[TEMP2:.+]] = load i32, ptr %0, align 1
+    // CHECK: store <4 x i8> %[[TEMP1]], ptr %_0, align 1
+    // CHECK: %[[TEMP2:.+]] = load i32, ptr %_0, align 1
     // CHECK: ret i32 %[[TEMP2]]
     *a
 }