summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff b/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
index d39571583..64a435f22 100644
--- a/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
+++ b/tests/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.panic-abort.diff
@@ -3,18 +3,15 @@
fn main() -> () {
let mut _0: ();
- let mut _1: bool;
- let _2: ();
+ let _1: ();
bb0: {
- StorageLive(_1);
- _1 = const false;
- switchInt(const false) -> [0: bb3, otherwise: bb1];
+ goto -> bb3;
}
bb1: {
- _2 = noop() -> [return: bb2, unwind unreachable];
+ _1 = noop() -> [return: bb2, unwind unreachable];
}
bb2: {
@@ -26,7 +23,6 @@
}
bb4: {
- StorageDead(_1);
return;
}
}