summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-29 18:43:59 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-07-29 18:43:59 +0000
commit7c85862b17068ebb7ca3f11177381913e349dc18 (patch)
tree0dd252d917c9605ac4dbe75a6c8249e54a6d946d /llvm/lib
parent334aec4dd2de892d081d1aaa0ac54864da43dd58 (diff)
downloadbcm5719-llvm-7c85862b17068ebb7ca3f11177381913e349dc18.tar.gz
bcm5719-llvm-7c85862b17068ebb7ca3f11177381913e349dc18.zip
Fixed MSVC out of range shift warning
llvm-svn: 277195
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
index 6497a3e9367..dfba9ff4cfd 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
@@ -1759,7 +1759,7 @@ WeightedLeaf LeafPrioQueue::findMULbyConst() {
}
SDValue HexagonDAGToDAGISel::getMultiplierForSHL(SDNode *N) {
- uint64_t MulFactor = 1 << N->getConstantOperandVal(1);
+ uint64_t MulFactor = 1ull << N->getConstantOperandVal(1);
return CurDAG->getConstant(MulFactor, SDLoc(N),
N->getOperand(1).getValueType());
}
OpenPOWER on IntegriCloud