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 | 39df18f6da323b145157fc33fb62187693835bb0 (patch) | |
tree | 872f1ea84e1af63fcf8250c312aca5d20ef29451 | |
parent | 95175052b26446696d1294abfe18d8d8ea02a321 (diff) | |
download | bcm5719-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.cpp | 8 |
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, |