aboutsummaryrefslogtreecommitdiff
path: root/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sema/SemaStmt.cpp')
-rw-r--r--Sema/SemaStmt.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Sema/SemaStmt.cpp b/Sema/SemaStmt.cpp
index 31dc236709..252a2422c8 100644
--- a/Sema/SemaStmt.cpp
+++ b/Sema/SemaStmt.cpp
@@ -648,3 +648,14 @@ Sema::StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc,
SourceLocation RParenLoc) {
return new AsmStmt(AsmLoc, RParenLoc);
}
+
+Action::StmtResult
+Sema::ActOnObjcAtCatchStmt(SourceLocation AtLoc,
+ SourceLocation RParen, StmtTy *Parm,
+ StmtTy *Body, StmtTy *CatchList) {
+ ObjcAtCatchStmt *CS = new ObjcAtCatchStmt(AtLoc, RParen,
+ static_cast<Stmt*>(Parm), static_cast<Stmt*>(Body),
+ static_cast<Stmt*>(CatchList));
+ return CatchList ? CatchList : CS;
+}
+