53e4b9dd74
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.