Skip to content

Commit db08060

Browse files
committed
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
1 parent a4558a4 commit db08060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Object/GOFFObjectFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
511511
const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec);
512512
GOFF::ESDAlignment Pow2Alignment;
513513
ESDRecord::getAlignment(EsdRecord, Pow2Alignment);
514-
return 1 << static_cast<uint64_t>(Pow2Alignment);
514+
return 1ULL << static_cast<uint64_t>(Pow2Alignment);
515515
}
516516

517517
bool GOFFObjectFile::isSectionText(DataRefImpl Sec) const {

0 commit comments

Comments
 (0)