Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.

llvm-svn: 369366
This commit is contained in:
Simon Pilgrim 2019-08-20 10:25:57 +00:00
parent b1bdd97a26
commit 5a28f0ae6e
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ uint64_t MachOLayoutBuilder::layoutSegments() {
if (Sec.isVirtualSection()) {
Sec.Offset = 0;
} else {
uint64_t PaddingSize = OffsetToAlignment(SegFileSize, 1 << Sec.Align);
uint64_t PaddingSize =
OffsetToAlignment(SegFileSize, 1ull << Sec.Align);
Sec.Offset = SegOffset + SegFileSize + PaddingSize;
Sec.Size = Sec.Content.size();
SegFileSize += PaddingSize + Sec.Size;