about summary refs log tree commit diff
path: root/tests/mir-opt/building/loop_match_diverges.break_to_block_unit.built.after.mir
blob: 6d779e46146c75f1b668fdfb77738519ab2ab596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// MIR for `break_to_block_unit` after built

fn break_to_block_unit() -> u8 {
    let mut _0: u8;
    let mut _1: i32;
    let mut _2: !;
    scope 1 {
        debug state => _1;
    }

    bb0: {
        StorageLive(_1);
        _1 = const 0_i32;
        FakeRead(ForLet(None), _1);
        StorageLive(_2);
        goto -> bb1;
    }

    bb1: {
        falseUnwind -> [real: bb2, unwind: bb10];
    }

    bb2: {
        PlaceMention(_1);
        _1 = const 2_i32;
        goto -> bb5;
    }

    bb3: {
        FakeRead(ForMatchedPlace(None), _1);
        unreachable;
    }

    bb4: {
        goto -> bb6;
    }

    bb5: {
        goto -> bb6;
    }

    bb6: {
        goto -> bb7;
    }

    bb7: {
        goto -> bb1;
    }

    bb8: {
        unreachable;
    }

    bb9: {
        StorageDead(_2);
        StorageDead(_1);
        return;
    }

    bb10 (cleanup): {
        resume;
    }
}