summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/lower_intrinsics.assume.LowerIntrinsics.panic-abort.diff
blob: 79635f23e8ebfa976020ae1fdf6bf72413417021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- // MIR for `assume` before LowerIntrinsics
+ // MIR for `assume` after LowerIntrinsics
  
  fn assume() -> () {
      let mut _0: ();
      let _1: ();
      scope 1 {
      }
  
      bb0: {
          StorageLive(_1);
-         _1 = std::intrinsics::assume(const true) -> [return: bb1, unwind unreachable];
+         assume(const true);
+         goto -> bb1;
      }
  
      bb1: {
          StorageDead(_1);
          _0 = const ();
          return;
      }
  }