[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 14:33:54 PST 2017


danzimm added a comment.

@rjmccall aha, right - thanks for explaining that to me (sorry for the bad logic I had earlier).

It turns out this was also broken for a lambda that was auto-converted to a function pointer who returned an ObjC object. I changed the test case to reflect the more general situation, but I'm still unsure about the quality of the tests. Is it ok to rely on optimization passes to inline certain calls?


Repository:
  rC Clang

https://reviews.llvm.org/D41050





More information about the cfe-commits mailing list