Silencing an MSVC C4334 warning ('<<' : result of 32-bit shift implicitly converted...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 2 Sep 2014 12:19:02 +0000 (12:19 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 2 Sep 2014 12:19:02 +0000 (12:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216902 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp

index 5357b7228bdbde1b601cd9f8dc3db28ddb70543a..5c7bfd8ebe2d040fd70ba8a3cf889bbbe1072eda 100644 (file)
@@ -7940,7 +7940,7 @@ bool checkValueWidth(SDValue V, unsigned width, ISD::LoadExtType &ExtType) {
   case ISD::Constant:
   case ISD::TargetConstant: {
     if (std::abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) <
   case ISD::Constant:
   case ISD::TargetConstant: {
     if (std::abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) <
-        1 << (width - 1))
+        1LL << (width - 1))
       return true;
     return false;
   }
       return true;
     return false;
   }