summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/enum_opt.trunc.EnumSizeOpt.32bit.diff
blob: 100a73e56f22a294e0fa2019b19c1fc94e4531fd (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
31
32
33
34
35
36
37
- // MIR for `trunc` before EnumSizeOpt
+ // MIR for `trunc` after EnumSizeOpt
  
  fn trunc() -> NotTrunctable {
      let mut _0: NotTrunctable;
      let mut _1: NotTrunctable;
      let mut _2: NotTrunctable;
      let mut _3: [u8; 1024];
      let mut _4: NotTrunctable;
      let mut _5: [u8; 4096];
      scope 1 {
          debug a => _1;
      }
  
      bb0: {
          StorageLive(_1);
          _1 = NotTrunctable::A;
          StorageLive(_2);
          StorageLive(_3);
          _3 = [const 0_u8; 1024];
          _2 = NotTrunctable::B(move _3);
          StorageDead(_3);
          _1 = move _2;
          StorageDead(_2);
          StorageLive(_4);
          StorageLive(_5);
          _5 = [const 0_u8; 4096];
          _4 = NotTrunctable::C(move _5);
          StorageDead(_5);
          _1 = move _4;
          StorageDead(_4);
          _0 = move _1;
          StorageDead(_1);
          return;
      }
  }