|
4 | 4 | fn main() -> () {
|
5 | 5 | let mut _0: (); // return place in scope 0 at $DIR/asm-unwind.rs:+0:15: +0:15
|
6 | 6 | let _1: (); // in scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
|
7 |
| -+ scope 1 (inlined foo) { // at $DIR/asm-unwind.rs:20:5: 20:10 |
8 |
| -+ let _2: D; // in scope 1 at $DIR/asm-unwind.rs:14:9: 14:11 |
| 7 | ++ scope 1 (inlined foo) { // at $DIR/asm-unwind.rs:21:5: 21:10 |
| 8 | ++ let _2: D; // in scope 1 at $DIR/asm-unwind.rs:15:9: 15:11 |
9 | 9 | + scope 2 {
|
10 |
| -+ debug _d => _2; // in scope 2 at $DIR/asm-unwind.rs:14:9: 14:11 |
| 10 | ++ debug _d => _2; // in scope 2 at $DIR/asm-unwind.rs:15:9: 15:11 |
11 | 11 | + scope 3 {
|
12 | 12 | + }
|
13 | 13 | + }
|
|
17 | 17 | StorageLive(_1); // scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
|
18 | 18 | - _1 = foo() -> bb1; // scope 0 at $DIR/asm-unwind.rs:+1:5: +1:10
|
19 | 19 | - // mir::Constant
|
20 |
| -- // + span: $DIR/asm-unwind.rs:20:5: 20:8 |
| 20 | +- // + span: $DIR/asm-unwind.rs:21:5: 21:8 |
21 | 21 | - // + literal: Const { ty: fn() {foo}, val: Value(<ZST>) }
|
22 |
| -+ StorageLive(_2); // scope 1 at $DIR/asm-unwind.rs:14:9: 14:11 |
23 |
| -+ asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind: bb3]; // scope 3 at $DIR/asm-unwind.rs:15:14: 15:54 |
| 22 | ++ StorageLive(_2); // scope 1 at $DIR/asm-unwind.rs:15:9: 15:11 |
| 23 | ++ asm!("", options(MAY_UNWIND)) -> [return: bb1, unwind: bb3]; // scope 3 at $DIR/asm-unwind.rs:16:14: 16:54 |
24 | 24 | }
|
25 | 25 |
|
26 | 26 | bb1: {
|
27 |
| -+ drop(_2) -> bb2; // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2 |
| 27 | ++ drop(_2) -> bb2; // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2 |
28 | 28 | + }
|
29 | 29 | +
|
30 | 30 | + bb2: {
|
31 |
| -+ StorageDead(_2); // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2 |
| 31 | ++ StorageDead(_2); // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2 |
32 | 32 | StorageDead(_1); // scope 0 at $DIR/asm-unwind.rs:+1:10: +1:11
|
33 | 33 | _0 = const (); // scope 0 at $DIR/asm-unwind.rs:+0:15: +2:2
|
34 | 34 | return; // scope 0 at $DIR/asm-unwind.rs:+2:2: +2:2
|
35 | 35 | + }
|
36 | 36 | +
|
37 | 37 | + bb3 (cleanup): {
|
38 |
| -+ drop(_2) -> bb4; // scope 1 at $DIR/asm-unwind.rs:16:1: 16:2 |
| 38 | ++ drop(_2) -> bb4; // scope 1 at $DIR/asm-unwind.rs:17:1: 17:2 |
39 | 39 | + }
|
40 | 40 | +
|
41 | 41 | + bb4 (cleanup): {
|
42 |
| -+ resume; // scope 1 at $DIR/asm-unwind.rs:13:1: 16:2 |
| 42 | ++ resume; // scope 1 at $DIR/asm-unwind.rs:14:1: 17:2 |
43 | 43 | }
|
44 | 44 | }
|
45 | 45 |
|
0 commit comments