summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/equal_true.opt.InstSimplify.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/equal_true.opt.InstSimplify.diff')
-rw-r--r--tests/mir-opt/equal_true.opt.InstSimplify.diff3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mir-opt/equal_true.opt.InstSimplify.diff b/tests/mir-opt/equal_true.opt.InstSimplify.diff
index 7b38862e4..88a51000c 100644
--- a/tests/mir-opt/equal_true.opt.InstSimplify.diff
+++ b/tests/mir-opt/equal_true.opt.InstSimplify.diff
@@ -13,16 +13,17 @@
_3 = _1;
- _2 = Eq(move _3, const true);
+ _2 = move _3;
- StorageDead(_3);
switchInt(move _2) -> [0: bb2, otherwise: bb1];
}
bb1: {
+ StorageDead(_3);
_0 = const 0_i32;
goto -> bb3;
}
bb2: {
+ StorageDead(_3);
_0 = const 1_i32;
goto -> bb3;
}