]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/inline/asm_unwind.main.Inline.diff
Update upstream source from tag 'upstream/1.67.1+dfsg1'
[rustc.git] / src / test / mir-opt / inline / asm_unwind.main.Inline.diff
1 - // MIR for `main` before Inline
2 + // MIR for `main` after Inline
3
4 fn main() -> () {
5 let mut _0: (); // return place in scope 0 at $DIR/asm_unwind.rs:+0:15: +0:15
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:21:5: 21:10
8 + let _2: D; // in scope 1 at $DIR/asm_unwind.rs:15:9: 15:11
9 + scope 2 {
10 + debug _d => _2; // in scope 2 at $DIR/asm_unwind.rs:15:9: 15:11
11 + scope 3 {
12 + }
13 + }
14 + }
15
16 bb0: {
17 StorageLive(_1); // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
18 - _1 = foo() -> bb1; // scope 0 at $DIR/asm_unwind.rs:+1:5: +1:10
19 - // mir::Constant
20 - // + span: $DIR/asm_unwind.rs:21:5: 21:8
21 - // + literal: Const { ty: fn() {foo}, val: Value(<ZST>) }
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 }
25
26 bb1: {
27 + drop(_2) -> bb2; // scope 1 at $DIR/asm_unwind.rs:17:1: 17:2
28 + }
29 +
30 + bb2: {
31 + StorageDead(_2); // scope 1 at $DIR/asm_unwind.rs:17:1: 17:2
32 StorageDead(_1); // scope 0 at $DIR/asm_unwind.rs:+1:10: +1:11
33 _0 = const (); // scope 0 at $DIR/asm_unwind.rs:+0:15: +2:2
34 return; // scope 0 at $DIR/asm_unwind.rs:+2:2: +2:2
35 + }
36 +
37 + bb3 (cleanup): {
38 + drop(_2) -> bb4; // scope 1 at $DIR/asm_unwind.rs:17:1: 17:2
39 + }
40 +
41 + bb4 (cleanup): {
42 + resume; // scope 1 at $DIR/asm_unwind.rs:14:1: 17:2
43 }
44 }
45