[libcxx-commits] [libcxx] [libc++] Fix inconsistency between is_lock_free and is_always_lock_free (PR #68109)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 3 13:59:33 PDT 2023


================
@@ -21,7 +21,6 @@
 template <typename T>
 void checkAlwaysLockFree() {
   if (std::atomic<T>::is_always_lock_free) {
-    LIBCPP_ASSERT(sizeof(std::atomic<T>) == sizeof(T)); // technically not required, but libc++ does it that way
----------------
EricWF wrote:

I assume the FloatArr3 case is what causes this?
Under what architecture? I haven't been able to reproduce the size difference in godbolt.



https://github.com/llvm/llvm-project/pull/68109


More information about the libcxx-commits mailing list