diff options
| author | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-02-28 13:15:15 +0200 |
|---|---|---|
| committer | Ariel Ben-Yehuda <ariel.byd@gmail.com> | 2017-03-03 13:54:19 +0200 |
| commit | 3ffa971212aba1e36cd8e7f3cd6a0ca9ae2858f5 (patch) | |
| tree | 1edef9e18ebdc4f598301c8b57a869021e95f5c0 | |
| parent | 906c06a2f6add77531c08dfd4014e7c65c1743b2 (diff) | |
| download | rust-3ffa971212aba1e36cd8e7f3cd6a0ca9ae2858f5.tar.gz rust-3ffa971212aba1e36cd8e7f3cd6a0ca9ae2858f5.zip | |
fix codegen test
| -rw-r--r-- | src/test/codegen/lifetime_start_end.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/test/codegen/lifetime_start_end.rs b/src/test/codegen/lifetime_start_end.rs index e3b35cf3552..5c1f1f8f2bb 100644 --- a/src/test/codegen/lifetime_start_end.rs +++ b/src/test/codegen/lifetime_start_end.rs @@ -11,11 +11,9 @@ // compile-flags: -O -C no-prepopulate-passes #![crate_type = "lib"] -#![feature(rustc_attrs)] // CHECK-LABEL: @test #[no_mangle] -#[rustc_mir] // FIXME #27840 MIR has different codegen. pub fn test() { let a = 0; &a; // keep variable in an alloca @@ -33,11 +31,11 @@ pub fn test() { // CHECK: [[S__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8* // CHECK: call void @llvm.lifetime.start(i{{[0-9 ]+}}, i8* [[S__5]]) -// CHECK: [[E__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8* -// CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E__5]]) - // CHECK: [[E_b:%[0-9]+]] = bitcast %"core::option::Option<i32>"** %b to i8* // CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E_b]]) + +// CHECK: [[E__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8* +// CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E__5]]) } let c = 1; |
