fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
958 B47 linesraw
1- // MIR for `no_deref_ptr` before EarlyOtherwiseBranch
2+ // MIR for `no_deref_ptr` after EarlyOtherwiseBranch
3  
4  fn no_deref_ptr(_1: Option<i32>, _2: *const Option<i32>) -> i32 {
5      debug a => _1;
6      debug b => _2;
7      let mut _0: i32;
8      let mut _3: isize;
9      let mut _4: isize;
10      let _5: i32;
11      scope 1 {
12          debug v => _5;
13      }
14  
15      bb0: {
16          _3 = discriminant(_1);
17          switchInt(move _3) -> [1: bb2, otherwise: bb1];
18      }
19  
20      bb1: {
21          _0 = const 0_i32;
22          goto -> bb5;
23      }
24  
25      bb2: {
26          _4 = discriminant((*_2));
27          switchInt(move _4) -> [1: bb4, otherwise: bb3];
28      }
29  
30      bb3: {
31          _0 = const 0_i32;
32          goto -> bb5;
33      }
34  
35      bb4: {
36          StorageLive(_5);
37          _5 = (((*_2) as Some).0: i32);
38          _0 = _5;
39          StorageDead(_5);
40          goto -> bb5;
41      }
42  
43      bb5: {
44          return;
45      }
46  }
47