summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-08-01 09:40:38 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-08-01 09:40:38 +0000
commit2ddeee178429d32d3a27e95ddabffe76f2571848 (patch)
treedbe54cee4d67d59f63eaf03654b1428c2c298369 /llvm/lib/Target
parentbade86cedcba12c21677b2ccf0ed6ada2f3ef268 (diff)
downloadbcm5719-llvm-2ddeee178429d32d3a27e95ddabffe76f2571848.tar.gz
bcm5719-llvm-2ddeee178429d32d3a27e95ddabffe76f2571848.zip
Fixed MSVC out of range shift warning
llvm-svn: 277333
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index 040dc7814a7..6f0fdddd7d5 100644
--- a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -309,7 +309,7 @@ bool MipsSEDAGToDAGISel::selectAddrFrameIndexOffset(
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;
}
OpenPOWER on IntegriCloud