]> granicus.if.org Git - clang/commit
objc_autoreleasePoolPop() can throw if a -dealloc does.
authorJohn McCall <rjmccall@apple.com>
Tue, 16 Apr 2013 21:29:40 +0000 (21:29 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 16 Apr 2013 21:29:40 +0000 (21:29 +0000)
commitb57f6b3d8f84e9241fd978e2739d6a9da0870546
tree92da8c2686b07a343141d8d2d77b36f735b1c5db
parent35e62d3c93936db0b647a7bf2d13131a4eb2f1fe
objc_autoreleasePoolPop() can throw if a -dealloc does.
Model it as throwing so that the exception can be caught.

This is generally not expected to have significant code-size
impact because the contents of the @autoreleasepool block
are very likely to contain a call, very likely at the same
cleanup level as the @autoreleasepool itself.

rdar://13660038

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179630 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGObjC.cpp
test/CodeGenObjC/autorelease.m