diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-02-12 04:56:03 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-02-12 17:37:05 +0100 |
| commit | faaf81bbbcd5114ad8268190f3cc235868997ae3 (patch) | |
| tree | ed62909c2ddf40630b2c4adfb60f9585e39b5137 /tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff | |
| parent | f4cfd872028398da2b2d85c368c51f4d007dc6af (diff) | |
| download | rust-faaf81bbbcd5114ad8268190f3cc235868997ae3.tar.gz rust-faaf81bbbcd5114ad8268190f3cc235868997ae3.zip | |
Start blocks eagerly
Diffstat (limited to 'tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff')
| -rw-r--r-- | tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff b/tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff index 62710ba8fbf..a5c29c191ad 100644 --- a/tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff +++ b/tests/mir-opt/gvn.wrap_unwrap.GVN.panic-abort.diff @@ -21,18 +21,18 @@ + _2 = Option::<T>::Some(_1); StorageDead(_3); - _4 = discriminant(_2); -- switchInt(move _4) -> [0: bb1, 1: bb3, otherwise: bb2]; +- switchInt(move _4) -> [0: bb2, 1: bb3, otherwise: bb1]; + _4 = const 1_isize; -+ switchInt(const 1_isize) -> [0: bb1, 1: bb3, otherwise: bb2]; ++ switchInt(const 1_isize) -> [0: bb2, 1: bb3, otherwise: bb1]; } bb1: { - StorageLive(_6); - _6 = begin_panic::<&str>(const "explicit panic") -> unwind unreachable; + unreachable; } bb2: { - unreachable; + StorageLive(_6); + _6 = begin_panic::<&str>(const "explicit panic") -> unwind unreachable; } bb3: { |
