diff options
author | David Spickett <david.spickett@linaro.org> | 2024-05-02 15:22:01 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2024-05-02 15:22:01 +0000 |
commit | cb5d6a5639ab17933f127456cee9167fb0ed6439 (patch) | |
tree | 295c5fef0d26f85233d4712c8b1f48920d42f3b1 /llvm/lib/IR/Module.cpp | |
parent | ab8ac36f10eef3d50d3a6fc8168c98298b643698 (diff) | |
download | llvm-cb5d6a5639ab17933f127456cee9167fb0ed6439.zip llvm-cb5d6a5639ab17933f127456cee9167fb0ed6439.tar.gz llvm-cb5d6a5639ab17933f127456cee9167fb0ed6439.tar.bz2 |
[llvm][ADT] Fix Arm 32 bit compilation warning in lazy atomic pointer
LazyAtomicPointer.h:36:49: warning: implicit conversion from 'unsigned long long'
to 'uintptr_t' (aka 'unsigned int') changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
static constexpr uintptr_t getBusy() { return -1ULL; }
On 32 bit Arm ULL is an unsigned long long which is 8 bytes, but
uintptr_t is 4 bytes. Instead of using a value, use the macro
UINTPTR_MAX that will be the correctly sized value.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions