diff options
| author | DianQK <dianqk@dianqk.net> | 2024-02-14 12:02:22 +0800 |
|---|---|---|
| committer | DianQK <dianqk@dianqk.net> | 2024-03-07 22:58:51 +0800 |
| commit | 08ae8380ce75b4a19c4a7bfa33eac8776daef532 (patch) | |
| tree | d99aa37997c1e213eccb92f77144bc49130241f5 /tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff | |
| parent | d8b7b5be7d4738dae63fbc35ed4b44ef97cf7ca2 (diff) | |
| download | rust-08ae8380ce75b4a19c4a7bfa33eac8776daef532.tar.gz rust-08ae8380ce75b4a19c4a7bfa33eac8776daef532.zip | |
Replace the default branch with an unreachable branch If it is the last variant
Diffstat (limited to 'tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff')
| -rw-r--r-- | tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff b/tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff index ff8933fca8b..422cbeaa224 100644 --- a/tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff +++ b/tests/mir-opt/funky_arms.float_to_exponential_common.GVN.panic-unwind.diff @@ -69,7 +69,7 @@ StorageLive(_6); _6 = ((*_1).4: std::option::Option<usize>); _7 = discriminant(_6); - switchInt(move _7) -> [1: bb4, otherwise: bb6]; + switchInt(move _7) -> [1: bb4, 0: bb6, otherwise: bb9]; } bb4: { @@ -135,5 +135,9 @@ StorageDead(_6); return; } + + bb9: { + unreachable; + } } |
