AST build for @catch clause (this is work in progress).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43628 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/Stmt.cpp b/AST/Stmt.cpp
index 1738f95..8e1abda 100644
--- a/AST/Stmt.cpp
+++ b/AST/Stmt.cpp
@@ -194,8 +194,10 @@
Stmt::child_iterator AsmStmt::child_end() { return child_iterator(); }
// ObjcAtCatchStmt
-Stmt::child_iterator ObjcAtCatchStmt::child_begin() { return &AtCatchStmt; }
-Stmt::child_iterator ObjcAtCatchStmt::child_end() { return &AtCatchStmt+1; }
+Stmt::child_iterator ObjcAtCatchStmt::child_begin() { return &SubExprs[0]; }
+Stmt::child_iterator ObjcAtCatchStmt::child_end() {
+ return &SubExprs[0]+END_EXPR;
+}
// ObjcAtFinallyStmt
Stmt::child_iterator ObjcAtFinallyStmt::child_begin() { return &AtFinallyStmt; }
@@ -203,5 +205,7 @@
// ObjcAtTryStmt
Stmt::child_iterator ObjcAtTryStmt::child_begin() { return &SubStmts[0]; }
-Stmt::child_iterator ObjcAtTryStmt::child_end() { return &SubStmts[0]+1; }
+Stmt::child_iterator ObjcAtTryStmt::child_end() {
+ return &SubStmts[0]+END_TRY;
+}