rust/tests/mir-opt/const_prop/reify_fn_ptr.main.ConstProp.diff

25 lines
1.3 KiB
Diff
Raw Normal View History

2020-04-04 12:15:01 -05:00
- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
fn main() -> () {
2022-07-27 13:47:42 -05:00
let mut _0: (); // return place in scope 0 at $DIR/reify_fn_ptr.rs:+0:11: +0:11
2022-12-04 13:20:55 -06:00
let mut _1: usize; // in scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:26
let mut _2: fn(); // in scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:17
2020-04-04 12:15:01 -05:00
scope 1 {
}
bb0: {
2022-12-04 13:20:55 -06:00
StorageLive(_1); // scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:26
StorageLive(_2); // scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:17
_2 = main as fn() (Pointer(ReifyFnPointer)); // scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:17
2020-04-04 12:15:01 -05:00
// mir::Constant
// + span: $DIR/reify_fn_ptr.rs:4:13: 4:17
2022-07-06 09:14:46 -05:00
// + literal: Const { ty: fn() {main}, val: Value(<ZST>) }
2022-12-04 13:20:55 -06:00
_1 = move _2 as usize (PointerExposeAddress); // scope 0 at $DIR/reify_fn_ptr.rs:+1:13: +1:26
StorageDead(_2); // scope 0 at $DIR/reify_fn_ptr.rs:+1:25: +1:26
StorageDead(_1); // scope 0 at $DIR/reify_fn_ptr.rs:+1:40: +1:41
2022-07-27 13:47:42 -05:00
return; // scope 0 at $DIR/reify_fn_ptr.rs:+2:2: +2:2
2020-04-04 12:15:01 -05:00
}
}