[llvm] 1c7fda9 - Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 04:26:48 PDT 2024
Author: Simon Pilgrim
Date: 2024-04-04T12:26:34+01:00
New Revision: 1c7fda9f4cde336c4ac30c7478b223536c6eb6d6
URL: https://github.com/llvm/llvm-project/commit/1c7fda9f4cde336c4ac30c7478b223536c6eb6d6
DIFF: https://github.com/llvm/llvm-project/commit/1c7fda9f4cde336c4ac30c7478b223536c6eb6d6.diff
LOG: Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
Added:
Modified:
llvm/tools/llvm-readobj/ELFDumper.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp
index d6dda619801755..d3534820c11724 100644
--- a/llvm/tools/llvm-readobj/ELFDumper.cpp
+++ b/llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -5157,7 +5157,7 @@ static bool printAArch64PAuthABICoreInfo(raw_ostream &OS, uint32_t DataSize,
std::string Desc;
for (uint32_t I = 0, End = Flags.size(); I < End; ++I) {
- if (!(Version & (1 << I)))
+ if (!(Version & (1ULL << I)))
Desc += '!';
Desc +=
Twine("PointerAuth" + Flags[I] + (I == End - 1 ? "" : ", ")).str();
More information about the llvm-commits
mailing list