Skip to content

Commit 468c6be

Browse files
committed
Fix "result of 32-bit shift implicitly converted to 64 bits" MSVC warning. NFCI.
1 parent 6a0ec8e commit 468c6be

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
@@ -514,7 +514,7 @@ uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
514514
const uint8_t *EsdRecord = getSectionEdEsdRecord(Sec);
515515
GOFF::ESDAlignment Pow2Alignment;
516516
ESDRecord::getAlignment(EsdRecord, Pow2Alignment);
517-
return 1 << static_cast<uint64_t>(Pow2Alignment);
517+
return 1ULL << static_cast<uint64_t>(Pow2Alignment);
518518
}
519519

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

0 commit comments

Comments
 (0)