summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-11 01:42:29 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-11 01:42:29 +0000
commit39df18f6da323b145157fc33fb62187693835bb0 (patch)
tree872f1ea84e1af63fcf8250c312aca5d20ef29451
parent95175052b26446696d1294abfe18d8d8ea02a321 (diff)
downloadbcm5719-llvm-39df18f6da323b145157fc33fb62187693835bb0.tar.gz
bcm5719-llvm-39df18f6da323b145157fc33fb62187693835bb0.zip
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. llvm-svn: 66623
-rw-r--r--clang/Driver/AnalysisConsumer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Driver/AnalysisConsumer.cpp b/clang/Driver/AnalysisConsumer.cpp
index e37e2c175b7..f19ff1787eb 100644
--- a/clang/Driver/AnalysisConsumer.cpp
+++ b/clang/Driver/AnalysisConsumer.cpp
@@ -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,
OpenPOWER on IntegriCloud