]> granicus.if.org Git - clang/commit
In ObjC++ on legacy runtimes, push an EH cleanup as well as
authorJohn McCall <rjmccall@apple.com>
Wed, 3 Apr 2013 00:56:07 +0000 (00:56 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 3 Apr 2013 00:56:07 +0000 (00:56 +0000)
commit73c56bb0c8e722f4f0c0a044f13064d381f1ec8d
treeccfe67d4d674385798cf412f08c0c3d60da3b8cd
parent7b47adcbea945e31db3e96567e81f14048c7a300
In ObjC++ on legacy runtimes, push an EH cleanup as well as
a normal cleanup when entering a @try or @synchronized to
ensure that we clean that up if an exception is triggered.

Apparently GCC did this, so it's hard to argue that we shouldn't
do at least as much.

rdar://12364847

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjCMac.cpp
test/CodeGenObjC/exceptions.m
test/CodeGenObjCXX/exceptions-legacy.mm [new file with mode: 0644]