rust/tests/mir-opt/building/custom/enums.switch_option_repr.built.after.mir
2024-08-18 16:07:33 -07:00

22 lines
355 B
Rust

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