mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Cast to remove warning about comparing signed and unsigned.
llvm-svn: 59518
This commit is contained in:
parent
3cd13e7e65
commit
5ba12c88c1
@ -732,7 +732,7 @@ static bool useSIToFPInst(ConstantFP &InitV, ConstantFP &ExitV,
|
||||
|
||||
// If the iteration range can be handled by SIToFPInst then use it.
|
||||
APInt Max = APInt::getSignedMaxValue(32);
|
||||
if (Max.getZExtValue() > abs(intEV - intIV))
|
||||
if (Max.getZExtValue() > static_cast<uint64_t>(abs(intEV - intIV)))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user