rust/tests/mir-opt/building/enum_cast.far.built.after.mir
2023-06-15 15:19:11 -04:00

23 lines
457 B
Rust

// MIR for `far` after built
fn far(_1: Far) -> isize {
debug far => _1;
let mut _0: isize;
let _2: Far;
let mut _3: i16;
let mut _4: u16;
let mut _5: bool;
bb0: {
StorageLive(_2);
_2 = move _1;
_3 = discriminant(_2);
_4 = _3 as u16 (IntToInt);
_5 = Le(_4, const 1_u16);
assume(move _5);
_0 = move _3 as isize (IntToInt);
StorageDead(_2);
return;
}
}