]> granicus.if.org Git - clang/commit
MS ABI: Use a different guard variable for each weak global
authorReid Kleckner <reid@kleckner.net>
Wed, 23 Apr 2014 18:22:11 +0000 (18:22 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 23 Apr 2014 18:22:11 +0000 (18:22 +0000)
commit437dc6082910fda186545ef41338f57935ed9ccb
treef8b6ebdb31a785823882d729fb3ce074bd818847
parentb21ef91f7dd7602b74ce96b2be6d38853f04e749
MS ABI: Use a different guard variable for each weak global

We were using the same guard variable and failing to initialize the
second global.

Clang is still not MS ABI compatible in this area.  Fixing that is
PR16959, which will require LLVM changes to @llvm.global_ctors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207008 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MicrosoftCXXABI.cpp
test/CodeGenCXX/microsoft-abi-static-initializers.cpp