aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/AnalysisConsumer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-08-02 05:43:14 +0000
committerTed Kremenek <kremenek@apple.com>2009-08-02 05:43:14 +0000
commit690a7f431d6863a101711e67636d51ddd13f35c5 (patch)
treeacd103b865f0af4ba31e5a6be89ca0ee136c830b /lib/Frontend/AnalysisConsumer.cpp
parent63fe5ecfd158d77b04498a6ef1956877ebf0e455 (diff)
Fix regression caused by recent refactoring where HTML and plist files would not get flushed out when using '-disable-free'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/AnalysisConsumer.cpp')
-rw-r--r--lib/Frontend/AnalysisConsumer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Frontend/AnalysisConsumer.cpp b/lib/Frontend/AnalysisConsumer.cpp
index ed7ea5e8e7..44d79be11c 100644
--- a/lib/Frontend/AnalysisConsumer.cpp
+++ b/lib/Frontend/AnalysisConsumer.cpp
@@ -234,6 +234,11 @@ void AnalysisConsumer::HandleTranslationUnit(ASTContext &C) {
if (ObjCImplementationDecl* ID = dyn_cast<ObjCImplementationDecl>(*I))
HandleCode(ID, 0, ObjCImplementationActions);
}
+
+ // Explicitly destroy the PathDiagnosticClient. This will flush its output.
+ // FIXME: This should be replaced with something that doesn't rely on
+ // side-effects in PathDiagnosticClient's destructor.
+ PD.reset(NULL);
}
void AnalysisConsumer::HandleCode(Decl* D, Stmt* Body, Actions& actions) {