[llvm-commits] [llvm] r75393 - /llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp
Chris Lattner
sabre at nondot.org
Sat Jul 11 15:31:59 PDT 2009
Author: lattner
Date: Sat Jul 11 17:31:59 2009
New Revision: 75393
URL: http://llvm.org/viewvc/llvm-project?rev=75393&view=rev
Log:
silence a vc++ warning.
Modified:
llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp
Modified: llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp?rev=75393&r1=75392&r2=75393&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/AddrModeMatcher.cpp Sat Jul 11 17:31:59 2009
@@ -206,7 +206,7 @@
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);
}
More information about the llvm-commits
mailing list