diff options
| author | David Chisnall <csdavec@swan.ac.uk> | 2012-04-05 13:13:24 +0000 | 
|---|---|---|
| committer | David Chisnall <csdavec@swan.ac.uk> | 2012-04-05 13:13:24 +0000 | 
| commit | c5d5a988155d61d4074b3e75dcd94cedb814efef (patch) | |
| tree | 7f5094a8487980be847e060c6d3e899e8df82a4d | |
| parent | 08342aa1a19166c40abcc510cd6ac3db25e72d58 (diff) | |
| download | bcm5719-llvm-c5d5a988155d61d4074b3e75dcd94cedb814efef.tar.gz bcm5719-llvm-c5d5a988155d61d4074b3e75dcd94cedb814efef.zip  | |
Fix use of __atomic_is_lock_free() intrinsic.
llvm-svn: 154093
| -rw-r--r-- | libcxx/include/atomic | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/atomic b/libcxx/include/atomic index f2e428a2611..6a02b5dc9da 100644 --- a/libcxx/include/atomic +++ b/libcxx/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);}  | 

