[cfe-commits] [libcxx] r154093 - /libcxx/trunk/include/atomic

David Chisnall csdavec at swan.ac.uk
Thu Apr 5 06:13:24 PDT 2012


Author: theraven
Date: Thu Apr  5 08:13:24 2012
New Revision: 154093

URL: http://llvm.org/viewvc/llvm-project?rev=154093&view=rev
Log:
Fix use of __atomic_is_lock_free() intrinsic.


Modified:
    libcxx/trunk/include/atomic

Modified: libcxx/trunk/include/atomic
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/atomic?rev=154093&r1=154092&r2=154093&view=diff
==============================================================================
--- libcxx/trunk/include/atomic (original)
+++ libcxx/trunk/include/atomic Thu Apr  5 08:13:24 2012
@@ -559,10 +559,10 @@
 
     _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);}





More information about the cfe-commits mailing list