summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit6ddbb4c963fdcb62964ed25530c182962ea0fde2 (patch)
tree9f4803707ffd286a9024491b37c0195ca60431e3 /clang/lib
parent7ac29bb2d8f21f75c63a14bb699936364c014c03 (diff)
downloadbcm5719-llvm-6ddbb4c963fdcb62964ed25530c182962ea0fde2.tar.gz
bcm5719-llvm-6ddbb4c963fdcb62964ed25530c182962ea0fde2.zip
Fix regression caused by recent refactoring where HTML and plist files would not get flushed out when using '-disable-free'.
llvm-svn: 77882
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Frontend/AnalysisConsumer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Frontend/AnalysisConsumer.cpp b/clang/lib/Frontend/AnalysisConsumer.cpp
index ed7ea5e8e7c..44d79be11c1 100644
--- a/clang/lib/Frontend/AnalysisConsumer.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud