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 | 93b2bdb866d49e3dab4623a822db281042e87382 (patch) | |
tree | f7c8664054d27acce18128f70ff3effca65eec61 /lib/Sema/SemaStmt.cpp | |
parent | 12a7634a7c8a463c47e64e5323cdcee6274e5e2e (diff) |
ObjCAtCatchStmt's ParamStmt is always a DeclStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index dfcb65a353..39b211f64b 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -964,7 +964,7 @@ Sema::ActOnObjCAtCatchStmt(SourceLocation AtLoc, StmtArg Body, StmtArg catchList) { Stmt *CatchList = static_cast<Stmt*>(catchList.release()); ObjCAtCatchStmt *CS = new (Context) ObjCAtCatchStmt(AtLoc, RParen, - static_cast<Stmt*>(Parm.release()), static_cast<Stmt*>(Body.release()), + static_cast<DeclStmt*>(Parm.release()), static_cast<Stmt*>(Body.release()), CatchList); return Owned(CatchList ? CatchList : CS); } |