mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
AArch64: Silence -Wabsolute-value warning with std::abs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e038aca6fe
commit
61123cf20a
@ -7939,7 +7939,8 @@ bool checkValueWidth(SDValue V, unsigned width, ISD::LoadExtType &ExtType) {
|
||||
}
|
||||
case ISD::Constant:
|
||||
case ISD::TargetConstant: {
|
||||
if(abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) < 1<<(width-1))
|
||||
if (std::abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) <
|
||||
1 << (width - 1))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user