Fixed MSVC out of range shift warning

llvm-svn: 277130
This commit is contained in:
Simon Pilgrim 2016-07-29 10:03:39 +00:00
parent a3de1262d7
commit 0aaf6ba248
1 changed files with 1 additions and 1 deletions

View File

@ -2062,7 +2062,7 @@ bool HexagonConstEvaluator::evaluate(const MachineInstr &MI,
{
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);