]> granicus.if.org Git - clang/commit
Module Debugging: Defer the emission of anonymous tag decls
authorAdrian Prantl <aprantl@apple.com>
Tue, 19 Jan 2016 18:02:47 +0000 (18:02 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 19 Jan 2016 18:02:47 +0000 (18:02 +0000)
commited2c14216cb447992d4096de7055df10bd80bc4c
treee29e7a33ae98c3b353ff07f544aede377ec99eb0
parent30395ea6a760198a47fbc6e9567aafd8970d938c
Module Debugging: Defer the emission of anonymous tag decls
until we are visiting their declcontext.

This fixes a regression introduced in r256962:
When building debug info for a typdef'd anonymous tag type, we would be
visiting the inner anonymous type first thus creating a "typedef changes
linkage of anonymous type, but linkage was already computed" error.

rdar://problem/24199640

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ObjectFilePCHContainerOperations.cpp
test/Modules/ExtDebugInfo.cpp
test/Modules/Inputs/DebugCXX.h
test/Modules/ModuleDebugInfo.cpp