summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff')
-rw-r--r--tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff17
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff b/tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff
index d2eef9058..142e08f4d 100644
--- a/tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff
+++ b/tests/mir-opt/dest-prop/union.main.DestinationPropagation.panic-unwind.diff
@@ -4,27 +4,20 @@
fn main() -> () {
let mut _0: ();
let _1: main::Un;
- let mut _2: u32;
- let mut _3: u32;
scope 1 {
debug un => _1;
scope 2 {
}
- scope 3 (inlined std::mem::drop::<u32>) {
- debug _x => _3;
+ scope 4 (inlined std::mem::drop::<u32>) {
+ debug _x => const 1_u32;
}
}
+ scope 3 (inlined val) {
+ }
bb0: {
StorageLive(_1);
- StorageLive(_2);
- _2 = val() -> [return: bb1, unwind continue];
- }
-
- bb1: {
- StorageDead(_2);
- StorageLive(_3);
- StorageDead(_3);
+ _1 = Un { us: const 1_u32 };
StorageDead(_1);
return;
}