2022-12-04 18:26:09 +00:00
|
|
|
- // MIR for `dominate_storage` before ReferencePropagation
|
|
|
|
+ // MIR for `dominate_storage` after ReferencePropagation
|
|
|
|
|
|
|
|
fn dominate_storage() -> () {
|
2023-06-06 13:47:00 +00:00
|
|
|
let mut _0: ();
|
|
|
|
let mut _1: i32;
|
|
|
|
let mut _2: &i32;
|
|
|
|
let mut _3: i32;
|
|
|
|
let mut _4: bool;
|
|
|
|
let mut _5: i32;
|
|
|
|
let mut _6: bool;
|
2022-12-04 18:26:09 +00:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 13:47:00 +00:00
|
|
|
goto -> bb1;
|
2022-12-04 18:26:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 13:47:00 +00:00
|
|
|
_1 = const 5_i32;
|
|
|
|
_2 = &_1;
|
|
|
|
goto -> bb2;
|
2022-12-04 18:26:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 13:47:00 +00:00
|
|
|
_5 = copy (*_2);
|
2023-06-23 16:53:09 +00:00
|
|
|
_0 = opaque::<i32>(copy _5) -> [return: bb3, unwind continue];
|
2022-12-04 18:26:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-06-06 13:47:00 +00:00
|
|
|
StorageDead(_1);
|
|
|
|
StorageLive(_1);
|
|
|
|
_6 = const true;
|
|
|
|
switchInt(copy _6) -> [0: bb3, otherwise: bb1];
|
2022-12-04 18:26:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|