mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
9d74efe32e
Fix #76803 miscompilation Fixes #76803 Seems like it was an oversight that the discriminant value being set was not compared to the target value from the SwitchInt, as a comment says this is a requirement for the optimization to be sound. r? `@wesleywiser` since you are probably familiar with the optimization and made #76837 to workaround the bug