diff options
| author | bors <bors@rust-lang.org> | 2018-07-13 00:38:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-13 00:38:17 +0000 |
| commit | e92e9ce0d8383ac0126467294575401c00e3b60a (patch) | |
| tree | d527a48f741b38521be5890f83ab313b5385c7f6 /src/test/codegen | |
| parent | 64f7de92166f1f7d940575feff57ac33bc384550 (diff) | |
| parent | 9c15a6606eff9c5821921f5cb6be305ccf8005de (diff) | |
| download | rust-e92e9ce0d8383ac0126467294575401c00e3b60a.tar.gz rust-e92e9ce0d8383ac0126467294575401c00e3b60a.zip | |
Auto merge of #52046 - cramertj:fix-generator-mir, r=eddyb
Ensure StorageDead is created even if variable initialization fails Rebase and slight cleanup of https://github.com/rust-lang/rust/pull/51109 Fixes https://github.com/rust-lang/rust/issues/49232 r? @eddyb
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; |
