File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11
11
// compile-flags: -O -C no-prepopulate-passes
12
12
13
13
#![ crate_type = "lib" ]
14
- #![ feature( rustc_attrs) ]
15
14
16
15
// CHECK-LABEL: @test
17
16
#[ no_mangle]
18
- #[ rustc_mir] // FIXME #27840 MIR has different codegen.
19
17
pub fn test ( ) {
20
18
let a = 0 ;
21
19
& a; // keep variable in an alloca
@@ -33,11 +31,11 @@ pub fn test() {
33
31
// CHECK: [[S__5:%[0-9]+]] = bitcast %"core::option::Option<i32>"* %_5 to i8*
34
32
// CHECK: call void @llvm.lifetime.start(i{{[0-9 ]+}}, i8* [[S__5]])
35
33
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
-
39
34
// CHECK: [[E_b:%[0-9]+]] = bitcast %"core::option::Option<i32>"** %b to i8*
40
35
// 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]])
41
39
}
42
40
43
41
let c = 1 ;
You can’t perform that action at this time.
0 commit comments