2023-09-20 16:43:33 -05:00
|
|
|
- // MIR for `undef_union_as_integer` before GVN
|
|
|
|
+ // MIR for `undef_union_as_integer` after GVN
|
2023-02-24 20:32:52 -06:00
|
|
|
|
|
|
|
fn undef_union_as_integer() -> u32 {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: u32;
|
|
|
|
let mut _1: undef_union_as_integer::Union32;
|
|
|
|
let mut _2: ();
|
2023-02-24 20:32:52 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
2023-09-20 16:43:33 -05:00
|
|
|
- _2 = ();
|
|
|
|
+ _2 = const ();
|
2023-06-06 08:47:00 -05:00
|
|
|
_1 = Union32 { value: move _2 };
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = move _1 as u32 (Transmute);
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|