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

20 lines
298 B
Rust

// MIR for `switch_bool` after built
fn switch_bool(_1: bool) -> u32 {
let mut _0: u32;
bb0: {
switchInt(copy _1) -> [1: bb1, 0: bb2, otherwise: bb2];
}
bb1: {
_0 = const 5_u32;
return;
}
bb2: {
_0 = const 10_u32;
return;
}
}