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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
644 B
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() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let mut _1: *const fn();
let mut _2: usize;
let mut _3: fn();
2020-04-04 12:15:01 -05:00
scope 1 {
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
StorageLive(_2);
StorageLive(_3);
_3 = main as fn() (PointerCoercion(ReifyFnPointer));
2023-06-06 08:47:00 -05:00
_2 = move _3 as usize (PointerExposeAddress);
StorageDead(_3);
_1 = move _2 as *const fn() (PointerFromExposedAddress);
StorageDead(_2);
StorageDead(_1);
_0 = const ();
return;
2020-04-04 12:15:01 -05:00
}
}