aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Stmt.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-12-24 01:59:46 +0000
committerTed Kremenek <kremenek@apple.com>2009-12-24 01:59:46 +0000
commit6281213d87e71b76f64c4ca62fbe7a97f18ae0a0 (patch)
treeff531d3906a65d865d43274f16f1ea54a433694f /lib/AST/Stmt.cpp
parent919f0665c35f76636d600f0e351920f6a37ee6cf (diff)
Fix bug I just introduced in ForStmt::child_end() where we could iterate off into garbage values.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r--lib/AST/Stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index ad1db9004f..7c7aeb8d3e 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -519,7 +519,7 @@ Stmt::child_iterator ForStmt::child_begin() {
return child_iterator(CondVar, &SubExprs[0]);
}
Stmt::child_iterator ForStmt::child_end() {
- return child_iterator(CondVar, &SubExprs[0]+END_EXPR);
+ return child_iterator(0, &SubExprs[0]+END_EXPR);
}
// ObjCForCollectionStmt