]> granicus.if.org Git - clang/commit
Don't use a global_ctors comdat for globals that aren't externally visible
authorReid Kleckner <reid@kleckner.net>
Wed, 15 Oct 2014 16:38:00 +0000 (16:38 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 15 Oct 2014 16:38:00 +0000 (16:38 +0000)
commit51847c2025e5e5d30ac45178bf22e44e09e591dc
tree331144d88a2efec7d813cea727c70916e51b6c9f
parent27c0ff3ab384b2a442e024f458123859c9333206
Don't use a global_ctors comdat for globals that aren't externally visible

In particular, if you have two identical templates in different TUs in
anonymous namespaces, we would use the same global_ctors comdat key for
both. As a result, only one would be run.

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