diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-11 01:42:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-11 01:42:29 +0000 |
commit | 3df6421150271266b5a90fd4c6bfa6566c38c036 (patch) | |
tree | a463f8cc2f8017267d193f464a5bc4ff053f3441 | |
parent | 940abcc574580e454689be801f38a3d4d41ab01f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66623 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/AnalysisConsumer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp index e37e2c175b..f19ff1787e 100644 --- a/Driver/AnalysisConsumer.cpp +++ b/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, |