Unverified Commit 67aec0cd authored by Peter Rong's avatar Peter Rong Committed by GitHub
Browse files

[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: default avatarPeter Rong <PeterRong96@gmail.com>
parent d3ce1078
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment