[PATCH] Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initialize the ManagedStatic mutex.

Chandler Carruth chandlerc at gmail.com
Mon Oct 27 18:35:02 PDT 2014


On Mon, Oct 27, 2014 at 1:52 PM, Chris Bieneman <beanz at apple.com> wrote:

> I don't have any particular opposition to using std::atomic, however since
> we don't have an enforced requirement I'm not sure we can assume we have
> it. Please keep in mind I think we still support deploying back to Windows
> XP.


The coding standards specifically state that we require MSVC 2012 and it
has a working <atomic> header. They also specifically call out that we
expect atomics to work. I don't believe there is any real reason to avoid
it, but maybe we will discover a reason.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141027/2b9ef539/attachment.html>


More information about the llvm-commits mailing list