about summary refs log tree commit diff
path: root/tests/mir-opt/building/enum_cast.offsetty.built.after.mir
blob: b84ce0de9a0a72de748372041db86d205e3f5039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// MIR for `offsetty` after built

fn offsetty(_1: NotStartingAtZero) -> u32 {
    debug x => _1;
    let mut _0: u32;
    let _2: NotStartingAtZero;
    let mut _3: isize;

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