[cfe-commits] r66623 - /cfe/trunk/Driver/AnalysisConsumer.cpp
Ted Kremenek
kremenek at apple.com
Tue Mar 10 18:42:29 PDT 2009
Author: kremenek
Date: Tue Mar 10 20:42:29 2009
New Revision: 66623
URL: http://llvm.org/viewvc/llvm-project?rev=66623&view=rev
Log:
Display the exploded graph before calling BugReporter.FlushReports(). The latter
deletes all registered BugTypes from BugReporter, and thus we need to display
the graph first.
Modified:
cfe/trunk/Driver/AnalysisConsumer.cpp
Modified: cfe/trunk/Driver/AnalysisConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/AnalysisConsumer.cpp?rev=66623&r1=66622&r2=66623&view=diff
==============================================================================
--- cfe/trunk/Driver/AnalysisConsumer.cpp (original)
+++ cfe/trunk/Driver/AnalysisConsumer.cpp Tue Mar 10 20:42:29 2009
@@ -546,13 +546,13 @@
// 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,
More information about the cfe-commits
mailing list