rust/tests/mir-opt/const_prop/transmute.undef_union_as_integer.GVN.32bit.diff
Matthew Jasper a277c901d9 Remove MIR unsafe check
This also remove safety information from MIR.
2024-04-03 08:50:12 +00:00

22 lines
522 B
Diff

- // MIR for `undef_union_as_integer` before GVN
+ // MIR for `undef_union_as_integer` after GVN
fn undef_union_as_integer() -> u32 {
let mut _0: u32;
let mut _1: undef_union_as_integer::Union32;
let mut _2: ();
bb0: {
StorageLive(_1);
StorageLive(_2);
- _2 = ();
+ _2 = const ();
_1 = Union32 { value: move _2 };
StorageDead(_2);
_0 = move _1 as u32 (Transmute);
StorageDead(_1);
return;
}
}