]> granicus.if.org Git - clang/commitdiff
Display the exploded graph before calling BugReporter.FlushReports(). The latter
authorTed Kremenek <kremenek@apple.com>
Wed, 11 Mar 2009 01:42:29 +0000 (01:42 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 11 Mar 2009 01:42:29 +0000 (01:42 +0000)
deletes all registered BugTypes from BugReporter, and thus we need to display
the graph first.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66623 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/AnalysisConsumer.cpp

index e37e2c175b7c144334a9a8792f2851946fe066d9..f19ff1787ebe5b8d9dd23fdda842d95d96251031 100644 (file)
@@ -546,13 +546,13 @@ static void ActionGRExprEngine(AnalysisManager& mgr, GRTransferFuncs* tf,
   // Release the auditor (if any) so that it doesn't monitor the graph
   // created BugReporter.
   ExplodedNodeImpl::SetAuditor(0);
-  
-  // Display warnings.
-  Eng.getBugReporter().FlushReports();
-  
+
   // Visualize the exploded graph.
   if (mgr.shouldVisualizeGraphviz())
     Eng.ViewGraph(mgr.shouldTrimGraph());
+  
+  // Display warnings.
+  Eng.getBugReporter().FlushReports();
 }
 
 static void ActionCheckerCFRefAux(AnalysisManager& mgr, bool GCEnabled,