Skip to content

Commit e4458de

Browse files
committed
fix codegen test
1 parent 7f8529d commit e4458de

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/codegen/lifetime_start_end.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
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.
1917
pub 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;

0 commit comments

Comments
 (0)