diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-09-12 19:04:30 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-09-12 19:04:30 +0300 |
| commit | e9214a147b09f8020f82b450e7c9e16290649909 (patch) | |
| tree | 1dfc718fc854fc15e18901cd5226c45ad4248807 /src/test/codegen | |
| parent | f71826e8f26fd4fa331574caa462960db8ed961a (diff) | |
| download | rust-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.rs | 9 |
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(); |
