rust/tests/mir-opt/building/custom/enums.switch_option_repr.built.after.mir

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

22 lines
350 B
Rust
Raw Normal View History

// MIR for `switch_option_repr` after built
fn switch_option_repr(_1: Bool) -> bool {
2023-06-06 08:47:00 -05:00
let mut _0: bool;
let mut _2: u8;
bb0: {
2023-06-06 08:47:00 -05:00
_2 = discriminant(_1);
switchInt(_2) -> [0: bb2, otherwise: bb1];
}
bb1: {
2023-06-06 08:47:00 -05:00
_0 = const true;
return;
}
bb2: {
2023-06-06 08:47:00 -05:00
_0 = const false;
return;
}
}