diff options
author | Anders Carlsson <andersca@mac.com> | 2008-09-11 08:21:54 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-09-11 08:21:54 +0000 |
commit | 1452f5599d4de1d97a71ad61786126b91da9da69 (patch) | |
tree | d21acf0c6e7bafe8dc716844a2ac00398735dc28 /lib/CodeGen/CGStmt.cpp | |
parent | 4b7ff6ebd7879ebf86cf6d0108d35d817135d513 (diff) |
Make sure to emit the catch parameter as well as the catch body.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index bf3469e538..5b88a19cf0 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -81,8 +81,8 @@ void CodeGenFunction::EmitStmt(const Stmt *S) { EmitObjCAtTryStmt(cast<ObjCAtTryStmt>(*S)); break; case Stmt::ObjCAtCatchStmtClass: - assert(0 && "@catch statements should be handled by EmitObjCAtTryStmt"); - break; + EmitObjCAtCatchStmt(cast<ObjCAtCatchStmt>(*S)); + break; case Stmt::ObjCAtFinallyStmtClass: assert(0 && "@finally statements should be handled by EmitObjCAtTryStmt"); break; |