]> granicus.if.org Git - clang/commit
Fix <rdar://problem/6210791> clang ObjC rewriter: @try / @catch block with no @finall...
authorSteve Naroff <snaroff@apple.com>
Thu, 11 Sep 2008 15:29:03 +0000 (15:29 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 11 Sep 2008 15:29:03 +0000 (15:29 +0000)
commit378f47afeebe3fde2c17e78ae1cf42d2e3beeacf
tree2e8c234150c9285cfc4dc6e5d6bdbc97e5d90d1a
parent7de3d7940d9904b1b9fff81ecfe3fe132a71a6ef
Fix <rdar://problem/6210791> clang ObjC rewriter: @try / @catch block with no @finally does not call objc_exception_try_exit.

Need a couple tweaks to RewriteObjCTryStmt(). Need to deal with implicit finally clauses (to make sure objc_exception_try_exit is called). Also fixed a related bug where we need to generate an implicit @catch else clause (to again make sure objc_exception_try_exit is called).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56104 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteObjC.cpp