]> granicus.if.org Git - clang/commit
RewriteObjC::RewriteObjCTryStmt():Don't synthesize a catch begin if there are 0 catch...
authorSteve Naroff <snaroff@apple.com>
Wed, 16 Jul 2008 15:31:30 +0000 (15:31 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 16 Jul 2008 15:31:30 +0000 (15:31 +0000)
commitc9ba172447f2e2fe938ae03c3b16b91bda5b4dc3
tree01b8d9fbec316a6efa1d8d7698315f49ef8e9ce1
parent76e429d781a8871afb5050f39ab8e00e72bdf2f8
RewriteObjC::RewriteObjCTryStmt():Don't synthesize a catch begin if there are 0 catch clauses.
This fixes <rdar://problem/5987211> clang ObjC rewriter: @try / @finally block produces unbalanced output.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53679 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/RewriteObjC.cpp
test/Rewriter/rewrite-try-catch.m