rust/tests/mir-opt/uninhabited_enum_branching.main.SimplifyCfg-after-uninhabited-enum-branching.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Rust
Raw Normal View History

2020-04-02 16:09:01 -05:00
// MIR for `main` after SimplifyCfg-after-uninhabited-enum-branching
fn main() -> () {
2023-06-06 08:47:00 -05:00
let mut _0: ();
let _1: &str;
let mut _2: Test1;
let mut _3: isize;
let _4: &str;
let _5: &str;
let _6: &str;
let mut _7: Test2;
let mut _8: isize;
let _9: &str;
2020-04-02 16:09:01 -05:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
StorageLive(_2);
_2 = Test1::C;
_3 = discriminant(_2);
switchInt(move _3) -> [2: bb1, otherwise: bb2];
2022-07-26 08:17:02 -05:00
}
bb1: {
2023-06-06 08:47:00 -05:00
StorageLive(_5);
_5 = const "C";
_1 = &(*_5);
StorageDead(_5);
StorageDead(_2);
StorageDead(_1);
StorageLive(_6);
StorageLive(_7);
_7 = Test2::D;
_8 = discriminant(_7);
switchInt(move _8) -> [4: bb4, 5: bb3, otherwise: bb2];
2020-04-02 16:09:01 -05:00
}
2022-07-26 08:17:02 -05:00
bb2: {
2023-06-06 08:47:00 -05:00
unreachable;
2022-07-26 08:17:02 -05:00
}
bb3: {
2023-06-06 08:47:00 -05:00
StorageLive(_9);
_9 = const "E";
_6 = &(*_9);
StorageDead(_9);
goto -> bb5;
2020-04-02 16:09:01 -05:00
}
2022-07-26 08:17:02 -05:00
bb4: {
2023-06-06 08:47:00 -05:00
_6 = const "D";
goto -> bb5;
2020-04-02 16:09:01 -05:00
}
2023-02-24 15:32:10 -06:00
bb5: {
2023-06-06 08:47:00 -05:00
StorageDead(_7);
StorageDead(_6);
_0 = const ();
return;
2020-04-02 16:09:01 -05:00
}
}