]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | - // MIR for `undef_union_as_integer` before ConstProp |
2 | + // MIR for `undef_union_as_integer` after ConstProp | |
3 | ||
4 | fn undef_union_as_integer() -> u32 { | |
5 | let mut _0: u32; // return place in scope 0 at $DIR/transmute.rs:+0:43: +0:46 | |
6 | let mut _1: undef_union_as_integer::Union32; // in scope 0 at $DIR/transmute.rs:+2:24: +2:44 | |
7 | let mut _2: (); // in scope 0 at $DIR/transmute.rs:+2:40: +2:42 | |
8 | scope 1 { | |
9 | } | |
10 | ||
11 | bb0: { | |
12 | StorageLive(_1); // scope 1 at $DIR/transmute.rs:+2:24: +2:44 | |
13 | StorageLive(_2); // scope 1 at $DIR/transmute.rs:+2:40: +2:42 | |
14 | _2 = (); // scope 1 at $DIR/transmute.rs:+2:40: +2:42 | |
15 | _1 = Union32 { value: move _2 }; // scope 1 at $DIR/transmute.rs:+2:24: +2:44 | |
16 | StorageDead(_2); // scope 1 at $DIR/transmute.rs:+2:43: +2:44 | |
17 | _0 = move _1 as u32 (Transmute); // scope 1 at $DIR/transmute.rs:+2:14: +2:45 | |
18 | StorageDead(_1); // scope 1 at $DIR/transmute.rs:+2:44: +2:45 | |
19 | return; // scope 0 at $DIR/transmute.rs:+3:2: +3:2 | |
20 | } | |
21 | } | |
22 |