Skip to content

codeGen/X86: Don't clobber switch variable in switch generation

Ben Gamari requested to merge wip/T12433 into master

Previously ce874595 assumed that it was safe to clobber the switch variable when generating code for a jump table since we were at the end of a block. However, this assumption is wrong; the register could be live in the jump target.

Fixes #21968 (closed).

Edited by Ben Gamari

Merge request reports