rust/tests/mir-opt/dead-store-elimination/provenance_soundness.pointer_to_int.DeadStoreElimination-initial.diff

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

36 lines
889 B
Diff
Raw Normal View History

- // 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;
_2 = move _3 as usize (PointerExposeProvenance);
2023-06-06 08:47:00 -05:00
StorageDead(_3);
StorageLive(_4);
StorageLive(_5);
_5 = copy _1;
_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
}
}