diff --git a/lib/Target/AArch64/AArch64ISelLowering.cpp b/lib/Target/AArch64/AArch64ISelLowering.cpp index 5357b7228bd..5c7bfd8ebe2 100644 --- a/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -7940,7 +7940,7 @@ bool checkValueWidth(SDValue V, unsigned width, ISD::LoadExtType &ExtType) { case ISD::Constant: case ISD::TargetConstant: { if (std::abs(cast(V.getNode())->getSExtValue()) < - 1 << (width - 1)) + 1LL << (width - 1)) return true; return false; }