[PATCH] D41050: Fix over-release of return value of lambda implicitly converted to block

Dan Zimmerman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 12 11:51:14 PST 2017


danzimm added a comment.

@rjmccall ah right, good point -- I think it's ok to elide that objc_retainAutoreleasedReturnValue/objc_autoreleaseReturnValue pair in this case though, since all of this is generated within clang itself (and thus we can make the guarentee that the object will properly live until the return of the enclosing block) -- it reduces retain count churn this way too


Repository:
  rC Clang

https://reviews.llvm.org/D41050





More information about the cfe-commits mailing list