From 23df6bb18f081c26ede55f8ba3041444459ee894 Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Tue, 27 Mar 2012 20:02:41 +0000 Subject: [PATCH] [analyzer] Stats: Only count the number of times we run path sensitive analyzes. (This method can be called twice on the same function.) llvm-svn: 153531 --- clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp index 5cf9e31c5b09..2b8e77745e17 100644 --- a/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp +++ b/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp @@ -430,10 +430,11 @@ void AnalysisConsumer::HandleCode(Decl *D, AnalysisMode Mode, if ((*WI)->hasBody()) { if (Mode != ANALYSIS_PATH) checkerMgr->runCheckersOnASTBody(*WI, *Mgr, BR); - if (Mode != ANALYSIS_SYNTAX && checkerMgr->hasPathSensitiveCheckers()) + if (Mode != ANALYSIS_SYNTAX && checkerMgr->hasPathSensitiveCheckers()) { RunPathSensitiveChecks(*WI, VisitedCallees); + NumFunctionsAnalyzed++; + } } - NumFunctionsAnalyzed++; } //===----------------------------------------------------------------------===//