mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-27 11:05:06 +00:00
rustc_codegen_ssa: Fix for codegen_get_discr When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes #104519
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.