2022-05-09 19:12:03 -05:00
|
|
|
- // MIR for `pointer_to_int` before DeadStoreElimination
|
|
|
|
+ // MIR for `pointer_to_int` after DeadStoreElimination
|
|
|
|
|
|
|
|
fn pointer_to_int(_1: *mut i32) -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug p => _1;
|
|
|
|
let mut _0: ();
|
|
|
|
let _2: usize;
|
|
|
|
let mut _3: *mut i32;
|
|
|
|
let mut _5: *mut i32;
|
2022-05-09 19:12:03 -05:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug _x => _2;
|
|
|
|
let _4: isize;
|
2022-05-09 19:12:03 -05:00
|
|
|
scope 2 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug _y => _4;
|
2022-05-09 19:12:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
|
|
|
StorageLive(_3);
|
|
|
|
_3 = _1;
|
|
|
|
_2 = move _3 as usize (PointerExposeAddress);
|
|
|
|
StorageDead(_3);
|
|
|
|
StorageLive(_4);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = _1;
|
|
|
|
_4 = move _5 as isize (PointerExposeAddress);
|
|
|
|
StorageDead(_5);
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2022-05-09 19:12:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|