[llvm] r277130 - Fixed MSVC out of range shift warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 29 03:03:40 PDT 2016
Author: rksimon
Date: Fri Jul 29 05:03:39 2016
New Revision: 277130
URL: http://llvm.org/viewvc/llvm-project?rev=277130&view=rev
Log:
Fixed MSVC out of range shift warning
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp?rev=277130&r1=277129&r2=277130&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonConstPropagation.cpp Fri Jul 29 05:03:39 2016
@@ -2062,7 +2062,7 @@ bool HexagonConstEvaluator::evaluate(con
{
int64_t B = MI.getOperand(2).getImm();
assert(B >=0 && B < 32);
- APInt A(32, (1 << B), false);
+ APInt A(32, (1ull << B), false);
Register R(MI.getOperand(1));
LatticeCell RC = Outputs.get(DefR.Reg);
bool Eval = evaluateORri(R, A, Inputs, RC);
More information about the llvm-commits
mailing list