When eliminating unnecessary retain+autorelease on return values,
authorDan Gohman <gohman@apple.com>
Thu, 29 Sep 2011 22:27:34 +0000 (22:27 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 29 Sep 2011 22:27:34 +0000 (22:27 +0000)
commit27e0666725c6558574cb7a55f8c91e7532e09548
treeedade80c839f45c971878899d08c9710caab95f1
parent597fece886fb4551d1f26ec7749d86e89970d8c2
When eliminating unnecessary retain+autorelease on return values,
handle the case where the retain is in a different basic block.
rdar://10210274.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140815 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ObjCARC.cpp
test/Transforms/ObjCARC/empty-block.ll [new file with mode: 0644]