]> granicus.if.org Git - clang/commit
In an ARC lambda-to-block conversion thunk, reclaim the return value of
authorJohn McCall <rjmccall@apple.com>
Thu, 14 Dec 2017 18:21:14 +0000 (18:21 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 14 Dec 2017 18:21:14 +0000 (18:21 +0000)
commita66f080af76f4d928571c4a61ce5ce88c0f41b49
treea8056ef4e2905e0122dca78f502e5e8678b37f48
parent8ea73c59c0bd90d09e69dfb602ecdd19c62f8e19
In an ARC lambda-to-block conversion thunk, reclaim the return value of
the lambda so that we don't over-release it.

Patch by Dan Zimmerman!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
test/CodeGenObjCXX/arc-forwarded-lambda-call.mm [new file with mode: 0644]