diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-03-27 16:23:46 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2024-03-27 16:26:10 +0000 |
commit | 468c6bea2280491283e45239ad1c0ac6a59b3da8 (patch) | |
tree | ba42919f873c22fe63a9a77ef88ab867de063578 | |
parent | 6a0ec8e25cba9d398cf525889c53835cf40247a3 (diff) | |
download | llvm-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.cpp | 2 |
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 { |