summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/lower_intrinsics.unreachable.LowerIntrinsics.panic-unwind.diff
blob: f5646e7f1e9918b250ceec85f0e109d14db11bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- // MIR for `unreachable` before LowerIntrinsics
+ // MIR for `unreachable` after LowerIntrinsics
  
  fn unreachable() -> ! {
      let mut _0: !;
      let _1: ();
      let mut _2: !;
      scope 1 {
      }
  
      bb0: {
          StorageLive(_1);
          StorageLive(_2);
-         _2 = std::intrinsics::unreachable() -> unwind unreachable;
+         unreachable;
      }
  }