summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.boo.built.after.mir
blob: ad0adf14e4ac8b69fd89bf54120026848e45b229 (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 `boo` after built

fn boo(_1: Boo) -> usize {
    debug boo => _1;
    let mut _0: usize;
    let _2: Boo;
    let mut _3: u8;
    let mut _4: u8;
    let mut _5: bool;

    bb0: {
        StorageLive(_2);
        _2 = move _1;
        _3 = discriminant(_2);
        _4 = _3 as u8 (IntToInt);
        _5 = Le(_4, const 1_u8);
        assume(move _5);
        _0 = move _3 as usize (IntToInt);
        StorageDead(_2);
        return;
    }
}