From 6945d383b9e8ca1b38442f06726d770676fe5856 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 21 Dec 2019 17:45:30 +0000 Subject: [PATCH] Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFC. --- llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ public: int64_t MulImm = cast(N)->getSExtValue(); if (Shift) - MulImm = 1 << MulImm; + MulImm = 1LL << MulImm; if ((MulImm % std::abs(Scale)) != 0) return false;