about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-09-12 19:04:30 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-09-12 19:04:30 +0300
commite9214a147b09f8020f82b450e7c9e16290649909 (patch)
tree1dfc718fc854fc15e18901cd5226c45ad4248807 /src/test/codegen
parentf71826e8f26fd4fa331574caa462960db8ed961a (diff)
downloadrust-e9214a147b09f8020f82b450e7c9e16290649909.tar.gz
rust-e9214a147b09f8020f82b450e7c9e16290649909.zip
codegen: be more explicit about setting giving names to allocas.
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/personality_lifetimes.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/codegen/personality_lifetimes.rs b/src/test/codegen/personality_lifetimes.rs
index 0d3d537a272..05888c0e733 100644
--- a/src/test/codegen/personality_lifetimes.rs
+++ b/src/test/codegen/personality_lifetimes.rs
@@ -20,12 +20,13 @@ pub fn test() {
     let _s = S;
     // Check that the personality slot alloca gets a lifetime start in each cleanup block, not just
     // in the first one.
+    // CHECK: [[SLOT:%[0-9]+]] = alloca { i8*, i32 }
     // CHECK-LABEL: cleanup:
-    // CHECK: bitcast{{.*}}personalityslot
-    // CHECK-NEXT: call void @llvm.lifetime.start
+    // CHECK: [[BITCAST:%[0-9]+]] = bitcast { i8*, i32 }* [[SLOT]] to i8*
+    // CHECK-NEXT: call void @llvm.lifetime.start.{{.*}}({{.*}}, i8* [[BITCAST]])
     // CHECK-LABEL: cleanup1:
-    // CHECK: bitcast{{.*}}personalityslot
-    // CHECK-NEXT: call void @llvm.lifetime.start
+    // CHECK: [[BITCAST1:%[0-9]+]] = bitcast { i8*, i32 }* [[SLOT]] to i8*
+    // CHECK-NEXT: call void @llvm.lifetime.start.{{.*}}({{.*}}, i8* [[BITCAST1]])
     might_unwind();
     let _t = S;
     might_unwind();