projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e038aca
)
AArch64: Silence -Wabsolute-value warning with std::abs
author
Reid Kleckner
<reid@kleckner.net>
Fri, 29 Aug 2014 22:14:26 +0000
(22:14 +0000)
committer
Reid Kleckner
<reid@kleckner.net>
Fri, 29 Aug 2014 22:14:26 +0000
(22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216794
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/AArch64/AArch64ISelLowering.cpp
b/lib/Target/AArch64/AArch64ISelLowering.cpp
index 05a6ade726229dbd32159d2a5a6f23a4f7a80712..5357b7228bdbde1b601cd9f8dc3db28ddb70543a 100644
(file)
--- a/
lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/
lib/Target/AArch64/AArch64ISelLowering.cpp
@@
-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;
}