[analyzer] Stats: Only count the number of times we run path sensitive

analyzes.

(This method can be called twice on the same function.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anna Zaks 2012-03-27 20:02:41 +00:00
Родитель d1f853d73d
Коммит 1f5171edc9
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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++;
}
//===----------------------------------------------------------------------===//