[PATCH] D23719: [libc++] Use C11 for atomics check

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 19 11:11:03 PDT 2016


bcraig added a comment.

In https://reviews.llvm.org/D23719#520952, @rsmith wrote:

> Are we really guaranteed that the C and C++ compiler behave the same way here? I don't see why that would necessarily be the case.


For libc++, std::atomic is implemented in terms of _Atomic.  So as long as the C++ compiler doesn't butcher _Atomic, it seems that the behavior would be the same.


https://reviews.llvm.org/D23719





More information about the cfe-commits mailing list