]> granicus.if.org Git - clang/commit
For thread-safe static initialization of local statics with
authorDouglas Gregor <dgregor@apple.com>
Wed, 5 May 2010 15:38:32 +0000 (15:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 5 May 2010 15:38:32 +0000 (15:38 +0000)
commitcc6a44b8bdecd9fc70211146e8ba3853b1fac784
tree7bf18b33b17a8ae8a3c474fe915ca6e2e7cb49a7
parent4bfe1968410ea8ffe3b4f629addd7c4bcf484765
For thread-safe static initialization of local statics with
destructors, place the __cxa_atexit call after the __cxa_guard_release
call, mimicking GCC/LLVM-GCC behavior. Noticed while debugging
something related.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103088 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
test/CodeGenCXX/static-init.cpp