From 0341c820a0a8e524bb1089310a6f3dae126b56a3 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 5 Apr 2012 13:13:24 +0000 Subject: [PATCH] Fix use of __atomic_is_lock_free() intrinsic. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@154093 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/atomic | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/atomic b/include/atomic index f2e428a2..6a02b5dc 100644 --- a/include/atomic +++ b/include/atomic @@ -559,10 +559,10 @@ struct __atomic_base // false _LIBCPP_INLINE_VISIBILITY bool is_lock_free() const volatile - {return __atomic_is_lock_free(_Tp());} + {return __atomic_is_lock_free(sizeof(_Tp));} _LIBCPP_INLINE_VISIBILITY bool is_lock_free() const - {return __atomic_is_lock_free(_Tp());} + {return __atomic_is_lock_free(sizeof(_Tp));} _LIBCPP_INLINE_VISIBILITY void store(_Tp __d, memory_order __m = memory_order_seq_cst) volatile {__atomic_store(&__a_, __d, __m);}