Author: theraven
Date: Tue Jan 17 15:20:41 2012
New Revision: 230267
URL: http://svn.freebsd.org/changeset/base/230267

Log:
  Fix clang atomic to use for atomic_is_lock_free().
  
  Reviewed by:  ed
  Approved by:  dim (mentor)

Modified:
  head/include/stdatomic.h

Modified: head/include/stdatomic.h
==============================================================================
--- head/include/stdatomic.h    Tue Jan 17 13:52:04 2012        (r230266)
+++ head/include/stdatomic.h    Tue Jan 17 15:20:41 2012        (r230267)
@@ -118,7 +118,7 @@ enum memory_order {
 
 #if defined(__CLANG_ATOMICS)
 #define        atomic_is_lock_free(obj) \
-       __atomic_is_lock_free(obj)
+       __atomic_is_lock_free(sizeof(obj))
 #elif defined(__GNUC_ATOMICS)
 #define        atomic_is_lock_free(obj) \
        __atomic_is_lock_free(sizeof((obj)->__val))
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to