[llvm] 19e7458 - Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 08:30:47 PST 2023
Author: Simon Pilgrim
Date: 2023-11-17T16:30:08Z
New Revision: 19e745890b8658825de63ce4d839537c7707e425
URL: https://github.com/llvm/llvm-project/commit/19e745890b8658825de63ce4d839537c7707e425
DIFF: https://github.com/llvm/llvm-project/commit/19e745890b8658825de63ce4d839537c7707e425.diff
LOG: Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning.
Added:
Modified:
llvm/lib/Analysis/ConstantFolding.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index 2771a3d574f7799..e8ee672b6a8471c 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -2432,7 +2432,7 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
if (!(Val & 0xF))
continue;
- QuadMask |= (1 << I);
+ QuadMask |= (1ULL << I);
}
return ConstantInt::get(Ty, QuadMask);
}
More information about the llvm-commits
mailing list