HomePhabricator

Fix bad APInt compare.

Authored by rtrieu on Sep 20 2019, 9:18 PM.

Description

Fix bad APInt compare.

APInt comparison require both to have the same bitwidth. Since only the value
is needed, use the compare function APInt::isSameValue instead.

llvm-svn: 372454

Details

Committed
rtrieuSep 20 2019, 9:18 PM
Parents
rG4c05de8c1d15: Merge and improve code that detects same value in comparisons.
Branches
Unknown
Tags
Unknown