]>
Commit | Line | Data |
---|---|---|
1b1a35ee XL |
1 | - // MIR for `test` before MultipleReturnTerminators |
2 | + // MIR for `test` after MultipleReturnTerminators | |
3 | ||
4 | fn test(_1: bool) -> () { | |
5 | debug x => _1; // in scope 0 at $DIR/multiple_return_terminators.rs:4:9: 4:10 | |
6 | let mut _0: (); // return place in scope 0 at $DIR/multiple_return_terminators.rs:4:18: 4:18 | |
7 | let mut _2: bool; // in scope 0 at $DIR/multiple_return_terminators.rs:5:8: 5:9 | |
8 | ||
9 | bb0: { | |
10 | StorageLive(_2); // scope 0 at $DIR/multiple_return_terminators.rs:5:8: 5:9 | |
11 | _2 = _1; // scope 0 at $DIR/multiple_return_terminators.rs:5:8: 5:9 | |
5869c6ff | 12 | switchInt(move _2) -> [false: bb2, otherwise: bb1]; // scope 0 at $DIR/multiple_return_terminators.rs:5:5: 9:6 |
1b1a35ee XL |
13 | } |
14 | ||
15 | bb1: { | |
1b1a35ee XL |
16 | goto -> bb3; // scope 0 at $DIR/multiple_return_terminators.rs:5:5: 9:6 |
17 | } | |
18 | ||
19 | bb2: { | |
1b1a35ee XL |
20 | goto -> bb3; // scope 0 at $DIR/multiple_return_terminators.rs:5:5: 9:6 |
21 | } | |
22 | ||
23 | bb3: { | |
5869c6ff | 24 | StorageDead(_2); // scope 0 at $DIR/multiple_return_terminators.rs:9:5: 9:6 |
1b1a35ee XL |
25 | return; // scope 0 at $DIR/multiple_return_terminators.rs:10:2: 10:2 |
26 | } | |
27 | } | |
28 |