Auto merge of #104535 - mikebenfield:discr-fix, r=pnkfelix

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
This commit is contained in:
bors 2022-12-04 20:05:32 +00:00
commit 1aecbe29d5

Diff content is not available