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