summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/building/enum_cast.foo.built.after.mir
blob: d4eea0534f830e586c7e05a7ef87f24b827ffbd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// MIR for `foo` after built

fn foo(_1: Foo) -> usize {
    debug foo => _1;
    let mut _0: usize;
    let _2: Foo;
    let mut _3: isize;

    bb0: {
        StorageLive(_2);
        _2 = move _1;
        _3 = discriminant(_2);
        _0 = move _3 as usize (IntToInt);
        StorageDead(_2);
        return;
    }
}