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