summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/return_place.add.PreCodegen.before.panic-unwind.mir
blob: fa0b9c77eaf619c545b87832666cf45fff7d1513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// MIR for `add` before PreCodegen

fn add() -> u32 {
    let mut _0: u32;
    let mut _1: (u32, bool);

    bb0: {
        _1 = const (4_u32, false);
        assert(!const false, "attempt to compute `{} + {}`, which would overflow", const 2_u32, const 2_u32) -> [success: bb1, unwind continue];
    }

    bb1: {
        _0 = const 4_u32;
        return;
    }
}

alloc5 (size: 8, align: 4) {
    04 00 00 00 00 __ __ __                         │ .....░░░
}