summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/simplify_match.main.ConstProp.panic-unwind.diff
blob: c881dec28c77d1be5325a08c386b1a7ffcd36447 (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
- // MIR for `main` before ConstProp
+ // MIR for `main` after ConstProp
  
  fn main() -> () {
      let mut _0: ();
      let mut _1: bool;
      let _2: bool;
      scope 1 {
          debug x => _2;
      }
  
      bb0: {
          _2 = const false;
-         switchInt(_2) -> [0: bb1, otherwise: bb2];
+         switchInt(const false) -> [0: bb1, otherwise: bb2];
      }
  
      bb1: {
          goto -> bb3;
      }
  
      bb2: {
          _0 = noop() -> [return: bb3, unwind continue];
      }
  
      bb3: {
          return;
      }
  }