Stop handling interesting deserialized decls after HandleTranslationUnit
authorReid Kleckner <rnk@google.com>
Wed, 30 Nov 2016 00:25:36 +0000 (00:25 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 30 Nov 2016 00:25:36 +0000 (00:25 +0000)
commit15241ba4dd8009cd89676f6f280d5de870e958ab
treed2f87cd05daf37f6a660ea9040835e2ced77e834
parent13b40bcc0322e27eaa61b459dec8f898ea1f069d
Stop handling interesting deserialized decls after HandleTranslationUnit

Other AST consumers can deserialize interesting decls that we might
codegen, but they won't make it to the final object file and can trigger
assertions in debug information generation after finalization.

llvm-svn: 288221
clang/lib/CodeGen/CodeGenAction.cpp
clang/test/Frontend/plugin-vs-debug-info.cpp [new file with mode: 0644]