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:
Reid Kleckner 2014-08-29 22:14:26 +00:00
parent e038aca6fe
commit 61123cf20a

View File

@ -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;
}