about summary refs log tree commit diff
path: root/tests/mir-opt/dest-prop/nrvo_miscompile_111005.wrong.DestinationPropagation.diff
blob: 60cf9236f6c2a23ab692f20fb5f887cf03cf12e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- // MIR for `wrong` before DestinationPropagation
+ // MIR for `wrong` after DestinationPropagation
  
  fn wrong(_1: char) -> char {
      let mut _0: char;
      let mut _2: char;
  
      bb0: {
-         _2 = copy _1;
-         _0 = copy _2;
-         _2 = const 'b';
+         nop;
+         _0 = copy _1;
+         _1 = const 'b';
          return;
      }
  }