From: Simon Pilgrim Date: Sun, 5 Feb 2023 09:38:15 +0000 (+0000) Subject: [AArch64] AArch64ExpandImm.cpp - fix MSVC "32-bit shift implicitly converted to 64... X-Git-Tag: upstream/17.0.6~18554 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b72330cd54f985f3454d3538b504027c3eff8711;p=platform%2Fupstream%2Fllvm.git [AArch64] AArch64ExpandImm.cpp - fix MSVC "32-bit shift implicitly converted to 64 bits" warning. NFC. --- 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;