summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.far.built.after.mir
blob: e75803c706daf6f45cef83f448aeb30dfaf990f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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;
    }
}