From 61123cf20a7fff90940572589e510d9bc8f54b69 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 29 Aug 2014 22:14:26 +0000 Subject: [PATCH] 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 --- lib/Target/AArch64/AArch64ISelLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }