]> granicus.if.org Git - clang/commit
[ASTUnit] Clear out diagnostic state after creating the preamble.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 13 Feb 2017 16:16:43 +0000 (16:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 13 Feb 2017 16:16:43 +0000 (16:16 +0000)
commit76b548308d6ec0af0d1a147c8614229df31fe150
tree9244ee62557e0028998aa2769ef6de114e830039
parent01e065de4320431c616740ebbca9fb60aa1574f0
[ASTUnit] Clear out diagnostic state after creating the preamble.

If the preamble had diagnostic state this would leave behind invalid
state in the DiagnosticsEngine and crash later. The test case runs into
an assertion in DiagnosticsEngine::setSourceManager.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294963 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTUnit.cpp
test/Index/complete-preamble.h