2024-01-06 12:34:25 -06:00
|
|
|
- // MIR for `pointer_to_int` before DeadStoreElimination-initial
|
|
|
|
+ // MIR for `pointer_to_int` after DeadStoreElimination-initial
|
2022-05-09 19:12:03 -05:00
|
|
|
|
|
|
|
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 = copy _1;
|
2024-04-03 08:17:00 -05:00
|
|
|
_2 = move _3 as usize (PointerExposeProvenance);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
StorageLive(_4);
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = copy _1;
|
2024-04-03 08:17:00 -05:00
|
|
|
_4 = move _5 as isize (PointerExposeProvenance);
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_5);
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_4);
|
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2022-05-09 19:12:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|