[PATCH] D60736: [Sema][ObjC] Don't warn about a block implicitly retaining self if the block is marked noescape
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 15:38:05 PDT 2019
ahatanak created this revision.
ahatanak added reviewers: rjmccall, erik.pilkington, arphaman.
ahatanak added a project: clang.
Herald added subscribers: dexonsmith, jkorous.
If the block implicitly referencing `self` doesn't escape, there is no risk of creating retain cycles, so clang shouldn't diagnose it and force users to add `self->` to silence the diagnostic.
Also, fix a bug where clang was failing to diagnose `self` referenced inside a block that was nested inside a c++ lambda.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9480 bytes
Desc: not available
More information about the cfe-commits