diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-09-04 21:07:37 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-09-04 21:07:37 +0000 |
| commit | 0d520f7d2efb471e568b3449f614ea90b48ad1db (patch) | |
| tree | 6fcd0d92a083271b81f63e474172cd742efd81b3 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 6155fbe1f6674eb0aab98156925938fec558e335 (diff) | |
| download | clang-0d520f7d2efb471e568b3449f614ea90b48ad1db.tar.gz clang-0d520f7d2efb471e568b3449f614ea90b48ad1db.tar.bz2 clang-0d520f7d2efb471e568b3449f614ea90b48ad1db.tar.xz | |
Do not emit duplicate global initializers for template static data members inside namespaces
A quirk of AST representation leads to class template static data member
definitions being visited twice during Clang IRGen resulting in
duplicate (benign) initializers.
Discovered while investigating a possibly-related debug info bug tickled
by the duplicate emission of these members & their associated debug
info.
With thanks to Richard Smith for help investigating, understanding, and
helping with the fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
