summary refs log tree commit diff
path: root/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2024-02-14 12:09:28 +0800
committerDianQK <dianqk@dianqk.net>2024-03-07 22:58:51 +0800
commit3d7f8b4e5b650efc628de9bf4bd5246d3493d261 (patch)
treea549fd0c67ac6dc0e3291d130211f92c2804ea66 /tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
parent08ae8380ce75b4a19c4a7bfa33eac8776daef532 (diff)
downloadrust-3d7f8b4e5b650efc628de9bf4bd5246d3493d261.tar.gz
rust-3d7f8b4e5b650efc628de9bf4bd5246d3493d261.zip
Get all variants to eliminate the default branching if we cannot get the layout of type
Diffstat (limited to 'tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff')
-rw-r--r--tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff b/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
index 3ef3be198ed..686581591fc 100644
--- a/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
+++ b/tests/mir-opt/simplify_locals_fixedpoint.foo.SimplifyLocals-final.panic-unwind.diff
@@ -28,7 +28,7 @@
   
       bb1: {
           _4 = discriminant((_1.1: std::option::Option<T>));
-          switchInt(move _4) -> [0: bb2, otherwise: bb3];
+          switchInt(move _4) -> [0: bb2, 1: bb3, otherwise: bb5];
       }
   
       bb2: {