diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-03-01 04:28:32 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-01 04:28:32 +0000 |
| commit | 947bca2cc94781cbb11cf978f9885f4c2a824631 (patch) | |
| tree | b07e6ec4b0ee4e51454fc64dfa7e06004fd3bf56 /clang/lib/AST | |
| parent | 38eae046cf9f126c8ebda0bde52141784d1e1a74 (diff) | |
| download | bcm5719-llvm-947bca2cc94781cbb11cf978f9885f4c2a824631.tar.gz bcm5719-llvm-947bca2cc94781cbb11cf978f9885f4c2a824631.zip | |
ObjCAtCatchStmt's ParamStmt is always a DeclStmt.
llvm-svn: 65759
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/Stmt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp index b85a67e689f..e987d84c231 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -180,12 +180,13 @@ ObjCForCollectionStmt::ObjCForCollectionStmt(Stmt *Elem, Expr *Collect, ObjCAtCatchStmt::ObjCAtCatchStmt(SourceLocation atCatchLoc, SourceLocation rparenloc, - Stmt *catchVarStmtDecl, Stmt *atCatchStmt, + DeclStmt *catchVarStmtDecl, Stmt *atCatchStmt, Stmt *atCatchList) : Stmt(ObjCAtCatchStmtClass) { SubExprs[SELECTOR] = catchVarStmtDecl; SubExprs[BODY] = atCatchStmt; SubExprs[NEXT_CATCH] = NULL; + // FIXME: O(N^2) in number of catch blocks. if (atCatchList) { ObjCAtCatchStmt *AtCatchList = static_cast<ObjCAtCatchStmt*>(atCatchList); |

