[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
This commit is contained in:
Anna Zaks 2012-03-27 20:02:41 +00:00
parent 8b6d051ea2
commit 23df6bb18f
1 changed files with 3 additions and 2 deletions

View File

@ -430,11 +430,12 @@ 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++;
}
}
}
//===----------------------------------------------------------------------===//
// Path-sensitive checking.