rust/tests/mir-opt/building/enum_cast.far.built.after.mir

23 lines
467 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 = copy _3 as u16 (IntToInt);
_5 = Le(copy _4, const 1_u16);
assume(move _5);
_0 = move _3 as isize (IntToInt);
StorageDead(_2);
return;
}
}