diff options
| author | Taylor Cramer <cramertj@google.com> | 2018-07-03 18:09:00 -0700 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-07-12 10:13:41 -0700 |
| commit | 9c15a6606eff9c5821921f5cb6be305ccf8005de (patch) | |
| tree | 4ec4bece204a423f4f5b668116c8070abc226ca8 /src/test/codegen | |
| parent | fb97bb50d1da7b7cafdaf83797f3514279f80421 (diff) | |
| download | rust-9c15a6606eff9c5821921f5cb6be305ccf8005de.tar.gz rust-9c15a6606eff9c5821921f5cb6be305ccf8005de.zip | |
Ensure StorageDead is created even if variable initialization fails
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/lifetime_start_end.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/lifetime_start_end.rs b/src/test/codegen/lifetime_start_end.rs index ea3f0de5d08..9f5170cc89e 100644 --- a/src/test/codegen/lifetime_start_end.rs +++ b/src/test/codegen/lifetime_start_end.rs @@ -31,11 +31,11 @@ pub fn test() { // CHECK: [[S__4:%[0-9]+]] = bitcast { i32, i32 }* %_4 to i8* // CHECK: call void @llvm.lifetime.start{{.*}}(i{{[0-9 ]+}}, i8* [[S__4]]) -// CHECK: [[E_b:%[0-9]+]] = bitcast { i32, i32 }** %b to i8* -// CHECK: call void @llvm.lifetime.end{{.*}}(i{{[0-9 ]+}}, i8* [[E_b]]) - // CHECK: [[E__4:%[0-9]+]] = bitcast { i32, i32 }* %_4 to i8* // CHECK: call void @llvm.lifetime.end{{.*}}(i{{[0-9 ]+}}, i8* [[E__4]]) + +// CHECK: [[E_b:%[0-9]+]] = bitcast { i32, i32 }** %b to i8* +// CHECK: call void @llvm.lifetime.end{{.*}}(i{{[0-9 ]+}}, i8* [[E_b]]) } let c = 1; |
