diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-12-29 20:13:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-12-29 20:13:03 +0000 |
commit | 07cf58c96dc599d1c25dae4efd9445b6f5d3596c (patch) | |
tree | 2980050918d9e393dfbced054e0bf5c340525f86 /include/clang/AST/StmtCXX.h | |
parent | d36aa359e2f45cd22c7366a015ad94de08044dbb (diff) |
ArrayRefize CXXTryStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/StmtCXX.h')
-rw-r--r-- | include/clang/AST/StmtCXX.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/clang/AST/StmtCXX.h b/include/clang/AST/StmtCXX.h index 26d53c8cfe..bbb02e59fe 100644 --- a/include/clang/AST/StmtCXX.h +++ b/include/clang/AST/StmtCXX.h @@ -63,8 +63,7 @@ class CXXTryStmt : public Stmt { SourceLocation TryLoc; unsigned NumHandlers; - CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, Stmt **handlers, - unsigned numHandlers); + CXXTryStmt(SourceLocation tryLoc, Stmt *tryBlock, ArrayRef<Stmt*> handlers); CXXTryStmt(EmptyShell Empty, unsigned numHandlers) : Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { } @@ -78,8 +77,7 @@ class CXXTryStmt : public Stmt { public: static CXXTryStmt *Create(ASTContext &C, SourceLocation tryLoc, - Stmt *tryBlock, Stmt **handlers, - unsigned numHandlers); + Stmt *tryBlock, ArrayRef<Stmt*> handlers); static CXXTryStmt *Create(ASTContext &C, EmptyShell Empty, unsigned numHandlers); |