summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_cycle.two.Inline.panic-unwind.diff
blob: a08662959dd8eda578068444acb6007a282ca732 (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
- // MIR for `two` before Inline
+ // MIR for `two` after Inline
  
  fn two() -> () {
      let mut _0: ();
      let _1: ();
+     let mut _2: fn() {f};
+     let mut _4: ();
+     scope 1 (inlined call::<fn() {f}>) {
+         debug f => _2;
+         let _3: ();
+         scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
+             scope 3 (inlined f) {
+                 scope 4 (inlined call::<fn() {f}>) {
+                     debug f => f;
+                     let _5: ();
+                     scope 5 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) {
+                     }
+                 }
+             }
+         }
+     }
  
      bb0: {
          StorageLive(_1);
-         _1 = call::<fn() {f}>(f) -> [return: bb1, unwind continue];
+         StorageLive(_2);
+         _2 = f;
+         StorageLive(_3);
+         StorageLive(_4);
+         _4 = const ();
+         StorageLive(_5);
+         _5 = f() -> [return: bb1, unwind continue];
      }
  
      bb1: {
+         StorageDead(_5);
+         StorageDead(_4);
+         StorageDead(_3);
+         StorageDead(_2);
          StorageDead(_1);
          _0 = const ();
          return;
      }
  }