about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-03-03 13:12:08 +0000
committerbors <bors@rust-lang.org>2017-03-03 13:12:08 +0000
commitf0b514524fed8c8cca369a51feece8be50f8b82b (patch)
tree190d488fcebef18c1c13ae3c5df2fad14e70293e /src/test/codegen
parent1476105dd3ae92042800d7b8e8e860dd4a60c59b (diff)
parentf99f1f8975ea00605e809de5a78d1876a67fc6ee (diff)
downloadrust-f0b514524fed8c8cca369a51feece8be50f8b82b.tar.gz
rust-f0b514524fed8c8cca369a51feece8be50f8b82b.zip
Auto merge of #40133 - arielb1:operand-lifetimes, r=eddyb
[MIR] improve operand lifetimes

r? @eddyb
Diffstat (limited to 'src/test/codegen')
-rw-r--r--src/test/codegen/lifetime_start_end.rs8
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;