[llvm] 6945d38 - Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 21 09:47:44 PST 2019
Author: Simon Pilgrim
Date: 2019-12-21T17:45:30Z
New Revision: 6945d383b9e8ca1b38442f06726d770676fe5856
URL: https://github.com/llvm/llvm-project/commit/6945d383b9e8ca1b38442f06726d770676fe5856
DIFF: https://github.com/llvm/llvm-project/commit/6945d383b9e8ca1b38442f06726d770676fe5856.diff
LOG: Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
index ef06993d618d..7f812b753fa8 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
@@ -177,7 +177,7 @@ class AArch64DAGToDAGISel : public SelectionDAGISel {
int64_t MulImm = cast<ConstantSDNode>(N)->getSExtValue();
if (Shift)
- MulImm = 1 << MulImm;
+ MulImm = 1LL << MulImm;
if ((MulImm % std::abs(Scale)) != 0)
return false;
More information about the llvm-commits
mailing list