Skip to content

Commit

Permalink
Auto merge of #104535 - mikebenfield:discr-fix, r=pnkfelix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Dec 4, 2022
2 parents 0460c12 + 57843c6 commit 97fb4fa
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 97fb4fa

Please sign in to comment.