blob: bba4d9c0149a196ca9fd87aa3ac669934b1f75c6 (
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
38
39
40
41
|
// MIR for `opt1` after SimplifyCfg-initial
fn opt1(_1: &Result<u32, Void>) -> &u32 {
debug res => _1;
let mut _0: &u32;
let mut _2: isize;
let _3: &u32;
let mut _4: !;
let mut _5: ();
scope 1 {
debug x => _3;
}
bb0: {
PlaceMention(_1);
falseEdge -> [real: bb4, imaginary: bb1];
}
bb1: {
_2 = discriminant((*_1));
switchInt(move _2) -> [1: bb3, otherwise: bb2];
}
bb2: {
FakeRead(ForMatchedPlace(None), _1);
unreachable;
}
bb3: {
FakeRead(ForMatchedPlace(None), (((*_1) as Err).0: Void));
unreachable;
}
bb4: {
StorageLive(_3);
_3 = &(((*_1) as Ok).0: u32);
_0 = &(*_3);
StorageDead(_3);
return;
}
}
|