From: Ted Kremenek Date: Wed, 11 Mar 2009 01:42:29 +0000 (+0000) Subject: Display the exploded graph before calling BugReporter.FlushReports(). The latter X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3df6421150271266b5a90fd4c6bfa6566c38c036;p=clang 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 --- 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,