aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2024-08-19 10:04:29 +0000
committerDavid Spickett <david.spickett@linaro.org>2024-08-19 10:12:45 +0000
commitcde806b0e63fddcca013536b4bd55e45607205d1 (patch)
tree42c7097a2a8801a1876caa0587ed90646ef2968d /llvm/unittests/Support/MathExtrasTest.cpp
parentb6d1df2afd0a464f3f37055f16fb9321a3b2eaaf (diff)
downloadllvm-cde806b0e63fddcca013536b4bd55e45607205d1.zip
llvm-cde806b0e63fddcca013536b4bd55e45607205d1.tar.gz
llvm-cde806b0e63fddcca013536b4bd55e45607205d1.tar.bz2
[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.
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions