diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-03-02 02:49:33 +0100 |
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-03-02 18:38:37 +0100 |
| commit | d46ff6415c033ccfebac3d2a757908611a67d324 (patch) | |
| tree | 5f59c97de9181caac2648685cbf83b16849ba75c /compiler/rustc_llvm/llvm-wrapper | |
| parent | edea739292f6ca2c69ad0d70d250806b579a1172 (diff) | |
| download | rust-d46ff6415c033ccfebac3d2a757908611a67d324.tar.gz rust-d46ff6415c033ccfebac3d2a757908611a67d324.zip | |
Fix a subtle regression
Before, the SwitchInt cases were computed in two passes: if the first pass accepted e.g. 0..=5 and then 1, the second pass would not accept 0..=5 anymore because 1 would be listed in the SwitchInt options. Now there's a single pass, so if we sort 0..=5 we must take care to not sort a subsequent 1.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
