Fix regression caused by recent refactoring where HTML and plist files would not get flushed out when using '-disable-free'.

llvm-svn: 77882
This commit is contained in:
Ted Kremenek
2009-08-02 05:43:14 +00:00
parent 7ac29bb2d8
commit 6ddbb4c963

View File

@@ -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) {