From: Reid Kleckner Date: Fri, 29 Aug 2014 22:14:26 +0000 (+0000) Subject: AArch64: Silence -Wabsolute-value warning with std::abs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=61123cf20a7fff90940572589e510d9bc8f54b69;p=oota-llvm.git 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 --- diff --git a/lib/Target/AArch64/AArch64ISelLowering.cpp b/lib/Target/AArch64/AArch64ISelLowering.cpp index 05a6ade7262..5357b7228bd 100644 --- 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(V.getNode())->getSExtValue()) < 1<<(width-1)) + if (std::abs(cast(V.getNode())->getSExtValue()) < + 1 << (width - 1)) return true; return false; }