about summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/matches_macro.issue_77355_opt.PreCodegen.after.mir
blob: d41135c6a4fa3a1912af47d2c1f2f7ffad5eb466 (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 `issue_77355_opt` after PreCodegen

fn issue_77355_opt(_1: Foo) -> u64 {
    debug num => _1;
    let mut _0: u64;
    let mut _2: isize;

    bb0: {
        _2 = discriminant(_1);
        switchInt(move _2) -> [1: bb1, 2: bb1, otherwise: bb2];
    }

    bb1: {
        _0 = const 23_u64;
        return;
    }

    bb2: {
        _0 = const 42_u64;
        return;
    }
}