]> granicus.if.org Git - clang/commitdiff
Fix regression caused by recent refactoring where HTML and plist files would not...
authorTed Kremenek <kremenek@apple.com>
Sun, 2 Aug 2009 05:43:14 +0000 (05:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 2 Aug 2009 05:43:14 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77882 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/AnalysisConsumer.cpp

index ed7ea5e8e7c696eb65f85ec98307fdaaa4020417..44d79be11c1e62516ac424a39a73c0e35a9a9303 100644 (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) {