]> granicus.if.org Git - clang/commit
MS ABI: Disambiguate the manglings for global guard variables
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 6 Mar 2014 19:57:36 +0000 (19:57 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 6 Mar 2014 19:57:36 +0000 (19:57 +0000)
commit27d09acf9e883691288d8a21c10f4a5d6e293242
tree897e6d92d570a90dab403f5e3c87573a869ce7c7
parentbf4e0959ad4929d245107ceb91e1738a10237b0a
MS ABI: Disambiguate the manglings for global guard variables

If a guard variable will be created for an entity at global scope,
then we cannot rely on the scope depth to disambiguate names for us.

Instead, mangle the entire variable into the guard to ensure it's uniqueness.

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