silence a vc++ warning.
authorChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 22:31:59 +0000 (22:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Jul 2009 22:31:59 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75393 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/AddrModeMatcher.cpp

index 7a2bf8587b1d629f886ff1c138870ae5a93038a5..36091e6fe27cae6c72d407740a3a06ea2129bb35 100644 (file)
@@ -206,7 +206,7 @@ bool AddressingModeMatcher::MatchOperationAddr(User *AddrInst, unsigned Opcode,
     if (!RHS) return false;
     int64_t Scale = RHS->getSExtValue();
     if (Opcode == Instruction::Shl)
-      Scale = 1 << Scale;
+      Scale = 1LL << Scale;
     
     return MatchScaledValue(AddrInst->getOperand(0), Scale, Depth);
   }