File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1111// compile-flags: -O -C no-prepopulate-passes
1212
1313#![ crate_type = "lib" ]
14- #![ feature( rustc_attrs) ]
1514
1615// CHECK-LABEL: @test
1716#[ no_mangle]
18- #[ rustc_mir] // FIXME #27840 MIR has different codegen.
1917pub fn test ( ) {
2018 let a = 0 ;
2119 & a; // keep variable in an alloca
@@ -33,11 +31,11 @@ pub fn test() {
3331// CHECK: [[S__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8*
3432// CHECK: call void @llvm.lifetime.start(i{{[0-9 ]+}}, i8* [[S__5]])
3533
36- // CHECK: [[E__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8*
37- // CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E__5]])
38-
3934// CHECK: [[E_b:%[0-9]+]] = bitcast %"core::option::Option<i32>"** %b to i8*
4035// CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E_b]])
36+
37+ // CHECK: [[E__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8*
38+ // CHECK: call void @llvm.lifetime.end(i{{[0-9 ]+}}, i8* [[E__5]])
4139 }
4240
4341 let c = 1 ;
You can’t perform that action at this time.
0 commit comments