diff options
author | Ed Maste <emaste@FreeBSD.org> | 2023-03-01 18:39:29 -0500 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-03-01 21:21:31 -0500 |
commit | 0fe1012f8ee2f05c7890dced58a4f700de44ec19 (patch) | |
tree | c5fae63c3179abdf8dbeab76568200417797e435 /libcxx/src | |
parent | 9a77a6f80252288d536b3aa471f241786a54068b (diff) | |
download | llvm-0fe1012f8ee2f05c7890dced58a4f700de44ec19.tar.gz |
[libc++] [FreeBSD] correct 64-bit test
Using __SIZEOF_LONG__ == 8 rather than __LP64__ is needed so we use umtx
on CHERI. I accidentally landed an older diff.
Fixes: 17ecbb3ea6ff0ae716dd524c0e2bf75a4815c95b
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/atomic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/atomic.cpp b/libcxx/src/atomic.cpp index 61e507d44f64..9a34210b6eec 100644 --- a/libcxx/src/atomic.cpp +++ b/libcxx/src/atomic.cpp @@ -77,7 +77,7 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo const_cast<__cxx_atomic_contention_t*>(__ptr), 0); } -#elif defined(__FreeBSD__) && defined(__LP64__) +#elif defined(__FreeBSD__) && __SIZEOF_LONG__ == 8 /* * Since __cxx_contention_t is int64_t even on 32bit FreeBSD * platforms, we have to use umtx ops that work on the long type, and |