diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp index a4de385e04f00714cb7581ba44517b6d03fd698a..69207d77c5d4fd5efc0d288f2809e9dce7ac8a62 100644 --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -1430,7 +1430,7 @@ void DeduplicatedCStringSection::finalizeContents() { assert(it != stringOffsetMap.end()); StringOffset &offsetInfo = it->second; if (offsetInfo.outSecOff == UINT64_MAX) { - offsetInfo.outSecOff = alignTo(size, 1 << offsetInfo.trailingZeros); + offsetInfo.outSecOff = alignTo(size, 1ULL << offsetInfo.trailingZeros); size = offsetInfo.outSecOff + s.size(); } isec->pieces[i].outSecOff = offsetInfo.outSecOff;