22 lines
350 B
Rust
22 lines
350 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(_2) -> [0: bb2, otherwise: bb1];
|
|
}
|
|
|
|
bb1: {
|
|
_0 = const true;
|
|
return;
|
|
}
|
|
|
|
bb2: {
|
|
_0 = const false;
|
|
return;
|
|
}
|
|
}
|