]> granicus.if.org Git - clang/commit
When initializing a catch variable in ARC, be sure to emit retains
authorJohn McCall <rjmccall@apple.com>
Tue, 17 Jan 2012 20:16:56 +0000 (20:16 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 17 Jan 2012 20:16:56 +0000 (20:16 +0000)
commitb29b12d494babf061201ffbcbcacddd21abec50e
treecd87054fc4e0464a60e43b5b7fc208769e2e832a
parent29c3f814b64808c6dac4597b61a50ceecdf141fc
When initializing a catch variable in ARC, be sure to emit retains
or whatever else is required for the initialization instead of
assuming it can be done with a simple store.

Fixes PR11732.

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