Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lld][MachO] Fix a suspicous assert in SyntheticSections.cpp
This was comparing some .size() (uint64_t) against the sizeof a size_t which changes with system bitness. This produced a warning that brought this to my attention. These tests were failing too on 32 bit Arm only: lld :: MachO/objc-category-merging-complete-test.s lld :: MachO/objc-category-merging-minimal.s The assert I think meant to check the value of target->wordSize, not the size of its type. Which is a type that changes size between systems.
- Loading branch information