summaryrefslogtreecommitdiff
path: root/tests/mir-opt/const_prop/transmute.invalid_bool.ConstProp.64bit.diff
blob: 4a31194de6eed992d5ec2c9d00ee9ef7ac596d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- // MIR for `invalid_bool` before ConstProp
+ // MIR for `invalid_bool` after ConstProp
  
  fn invalid_bool() -> bool {
      let mut _0: bool;                    // return place in scope 0 at $DIR/transmute.rs:+0:33: +0:37
      scope 1 {
      }
  
      bb0: {
-         _0 = const -1_i8 as bool (Transmute); // scope 1 at $DIR/transmute.rs:+1:14: +1:30
+         _0 = const {transmute(0xff): bool}; // scope 1 at $DIR/transmute.rs:+1:14: +1:30
          return;                          // scope 0 at $DIR/transmute.rs:+2:2: +2:2
      }
  }