mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
26 lines
528 B
Diff
26 lines
528 B
Diff
- // MIR for `hello` before GVN
|
|
+ // MIR for `hello` after GVN
|
|
|
|
fn hello() -> () {
|
|
let mut _0: ();
|
|
let mut _1: bool;
|
|
let mut _2: !;
|
|
|
|
bb0: {
|
|
StorageLive(_1);
|
|
_1 = const _;
|
|
- switchInt(move _1) -> [0: bb2, otherwise: bb1];
|
|
+ switchInt(const false) -> [0: bb2, otherwise: bb1];
|
|
}
|
|
|
|
bb1: {
|
|
_2 = begin_panic::<&str>(const "explicit panic") -> unwind continue;
|
|
}
|
|
|
|
bb2: {
|
|
StorageDead(_1);
|
|
return;
|
|
}
|
|
}
|
|
|