[LowerSwitch] Use unsigned integer for range comparison (#93237)
Commit 1db51d8e switched from int64_t to `APInt` to prevent high precision integer overflow. However, when comparing the "range" of switch cases, we should switch to unsigned integer to prevent overflow. This patch fixes https://github.com/llvm/llvm-project/issues/93152 . Some test cases are added. Signed-off-by:Peter Rong <PeterRong96@gmail.com>
parent
d3ce1078
Please register or sign in to comment