[all-commits] [llvm/llvm-project] cb5d6a: [llvm][ADT] Fix Arm 32 bit compilation warning in ...
David Spickett via All-commits
all-commits at lists.llvm.org
Thu May 2 08:25:49 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb5d6a5639ab17933f127456cee9167fb0ed6439
https://github.com/llvm/llvm-project/commit/cb5d6a5639ab17933f127456cee9167fb0ed6439
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-05-02 (Thu, 02 May 2024)
Changed paths:
M llvm/include/llvm/ADT/LazyAtomicPointer.h
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list