[llvm] r277333 - Fixed MSVC out of range shift warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 02:40:38 PDT 2016
Author: rksimon
Date: Mon Aug 1 04:40:38 2016
New Revision: 277333
URL: http://llvm.org/viewvc/llvm-project?rev=277333&view=rev
Log:
Fixed MSVC out of range shift warning
Modified:
llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp?rev=277333&r1=277332&r2=277333&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsSEISelDAGToDAG.cpp Mon Aug 1 04:40:38 2016
@@ -309,7 +309,7 @@ bool MipsSEDAGToDAGISel::selectAddrFrame
Base = Addr.getOperand(0);
// If base is a FI, additional offset calculation is done in
// eliminateFrameIndex, otherwise we need to check the alignment
- if (OffsetToAlignment(CN->getZExtValue(), 1 << ShiftAmount) != 0)
+ if (OffsetToAlignment(CN->getZExtValue(), 1ull << ShiftAmount) != 0)
return false;
}
More information about the llvm-commits
mailing list