mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
25 lines
618 B
Diff
25 lines
618 B
Diff
- // MIR for `undef_union_as_integer` before DataflowConstProp
|
|
+ // MIR for `undef_union_as_integer` after DataflowConstProp
|
|
|
|
fn undef_union_as_integer() -> u32 {
|
|
let mut _0: u32;
|
|
let mut _1: undef_union_as_integer::Union32;
|
|
let mut _2: ();
|
|
scope 1 {
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
StorageLive(_2);
|
|
- _2 = ();
|
|
- _1 = Union32 { value: move _2 };
|
|
+ _2 = const ();
|
|
+ _1 = Union32 { value: const () };
|
|
StorageDead(_2);
|
|
_0 = move _1 as u32 (Transmute);
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
}
|
|
|