diff options
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 541bb0401c..49c8c80509 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -219,7 +219,7 @@ Stmt::child_iterator NullStmt::child_end() { return child_iterator(); } // CompoundStmt Stmt::child_iterator CompoundStmt::child_begin() { return &Body[0]; } -Stmt::child_iterator CompoundStmt::child_end() { return &Body[0]+Body.size(); } +Stmt::child_iterator CompoundStmt::child_end() { return &Body[0]+NumStmts; } // CaseStmt Stmt::child_iterator CaseStmt::child_begin() { return &SubExprs[0]; } |