[cfe-commits] r134733 - /cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Jul 8 13:38:53 PDT 2011
Author: d0k
Date: Fri Jul 8 15:38:53 2011
New Revision: 134733
URL: http://llvm.org/viewvc/llvm-project?rev=134733&view=rev
Log:
Initialize all the AnalysisBasedWarnings statistics to zero.
Found by valgrind.
Modified:
cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp
Modified: cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp?rev=134733&r1=134732&r2=134733&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp (original)
+++ cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp Fri Jul 8 15:38:53 2011
@@ -600,8 +600,14 @@
clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s)
: S(s),
NumFunctionsAnalyzed(0),
+ NumFunctionsWithBadCFGs(0),
NumCFGBlocks(0),
- MaxCFGBlocksPerFunction(0) {
+ MaxCFGBlocksPerFunction(0),
+ NumUninitAnalysisFunctions(0),
+ NumUninitAnalysisVariables(0),
+ MaxUninitAnalysisVariablesPerFunction(0),
+ NumUninitAnalysisBlockVisits(0),
+ MaxUninitAnalysisBlockVisitsPerFunction(0) {
Diagnostic &D = S.getDiagnostics();
DefaultPolicy.enableCheckUnreachable = (unsigned)
(D.getDiagnosticLevel(diag::warn_unreachable, SourceLocation()) !=
More information about the cfe-commits
mailing list