aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-26 14:40:08 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-26 14:40:08 +0000
commitdbe833da54e1b6192991b64fc453cd50b5ee7909 (patch)
tree9492ee9890ee943059d9067496baffa85ccd7737 /lib/AST/Stmt.cpp
parent6b3454a219cee5ef36c4668961f93a5c32deab61 (diff)
Simplify printing of the statistics for types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r--lib/AST/Stmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index b2fadb1834..17577910d2 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -78,6 +78,7 @@ void Stmt::PrintStats() {
sum = 0;
for (int i = 0; i != Stmt::lastExprConstant+1; i++) {
if (StmtClassInfo[i].Name == 0) continue;
+ if (StmtClassInfo[i].Counter == 0) continue;
fprintf(stderr, " %d %s, %d each (%d bytes)\n",
StmtClassInfo[i].Counter, StmtClassInfo[i].Name,
StmtClassInfo[i].Size,