From b72330cd54f985f3454d3538b504027c3eff8711 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 5 Feb 2023 09:38:15 +0000 Subject: [PATCH] [AArch64] AArch64ExpandImm.cpp - fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC. --- llvm/lib/Target/AArch64/AArch64ExpandImm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp index ff85e21..efaa5e9 100644 --- a/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp +++ b/llvm/lib/Target/AArch64/AArch64ExpandImm.cpp @@ -270,7 +270,7 @@ static uint64_t MaximallyReplicateSubImmediate(uint64_t V, uint64_t Subset) { // 64, 32, 16, 8, 4, 2 for (uint64_t i = 0; i < 6; ++i) { - uint64_t Rotation = 1 << (6 - i); + uint64_t Rotation = 1ULL << (6 - i); uint64_t Closure = Result | rotl(Result, Rotation); if (Closure != (Closure & V)) { break; -- 2.7.4