aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2024-03-27 16:23:46 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2024-03-27 16:26:10 +0000
commit468c6bea2280491283e45239ad1c0ac6a59b3da8 (patch)
treeba42919f873c22fe63a9a77ef88ab867de063578
parent6a0ec8e25cba9d398cf525889c53835cf40247a3 (diff)
downloadllvm-468c6bea2280491283e45239ad1c0ac6a59b3da8.zip
llvm-468c6bea2280491283e45239ad1c0ac6a59b3da8.tar.gz
llvm-468c6bea2280491283e45239ad1c0ac6a59b3da8.tar.bz2
Fix "result of 32-bit shift implicitly converted to 64 bits" MSVC warning. NFCI.
-rw-r--r--llvm/lib/Object/GOFFObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/GOFFObjectFile.cpp b/llvm/lib/Object/GOFFObjectFile.cpp
index 6b48d46..2845d93 100644
--- a/llvm/lib/Object/GOFFObjectFile.cpp
+++ b/llvm/lib/Object/GOFFObjectFile.cpp
@@ -514,7 +514,7 @@ uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec);
GOFF::ESDAlignment Pow2Alignment;
ESDRecord::getAlignment(EsdRecord, Pow2Alignment);
- return 1 << static_cast<uint64_t>(Pow2Alignment);
+ return 1ULL << static_cast<uint64_t>(Pow2Alignment);
}
bool GOFFObjectFile::isSectionText(DataRefImpl Sec) const {