[lld-macho] Use uint64_t instead of size_t to fix 32 bit test failures
authorDavid Spickett <david.spickett@linaro.org>
Thu, 16 Feb 2023 09:41:50 +0000 (09:41 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Thu, 16 Feb 2023 09:44:38 +0000 (09:44 +0000)
commit0e1fb48bb95abaf94c0d21b58c4c075f6faad8ba
tree413a097c5d1e94ffb8fc33a11d4e70d52c19a11e
parenteeb125659c172f83c9c3a7b5dfaf3e4fb54b7c25
[lld-macho] Use uint64_t instead of size_t to fix 32 bit test failures

Our bot has been failing https://lab.llvm.org/buildbot/#/builders/178/builds/3967:
Assertion `isecEnd - isecVA <= forwardBranchRange && "should only finalize sections in jump range"' failed.

I think this is due to the use of size_t, which is 32 bit on 32 bit,
for a value used in some 64 bit address calculations. Which was added in
https://reviews.llvm.org/D144029.

Switching to uint64_t fixes the issues.
lld/MachO/ConcatOutputSection.cpp