diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 18:49:54 +0900 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 18:49:54 +0900 |
| commit | e2810c9a248f4c7fbfae84bb32b6f7e01027458b (patch) | |
| tree | ae0b02a8491b969a1cee94ea16ffe42c559143c5 /lld/MachO/SyntheticSections.cpp | |
| parent | fa04eb4af95c1ca7377279728cb004bcd2324d01 (diff) | |
| parent | bdcf47e4bcb92889665825654bb80a8bbe30379e (diff) | |
Merge branch 'users/chapuni/cov/single/base' into users/chapuni/cov/single/switchusers/chapuni/cov/single/switch
Diffstat (limited to 'lld/MachO/SyntheticSections.cpp')
| -rw-r--r-- | lld/MachO/SyntheticSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp index 28fb8047cacd..417b7cf93efa 100644 --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -2079,12 +2079,12 @@ void ObjCMethListSection::finalize() { void ObjCMethListSection::writeTo(uint8_t *bufStart) const { uint8_t *buf = bufStart; for (const ConcatInputSection *isec : inputs) { - assert(buf - bufStart == long(isec->outSecOff) && + assert(buf - bufStart == std::ptrdiff_t(isec->outSecOff) && "Writing at unexpected offset"); uint32_t writtenSize = writeRelativeMethodList(isec, buf); buf += writtenSize; } - assert(buf - bufStart == sectionSize && + assert(buf - bufStart == std::ptrdiff_t(sectionSize) && "Written size does not match expected section size"); } |
