]> granicus.if.org Git - clang/commit
Objective-C ARC. Blocks that strongly capture themselves
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 12 Jun 2014 20:57:14 +0000 (20:57 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 12 Jun 2014 20:57:14 +0000 (20:57 +0000)
commit98be881816f1497a682e53df327fba017a1f07e1
treeaa8543babbdc5d4794b30d57d10d9b94e42cc31f
parent5471ad06e14d47734d89ab5d197695d935d39243
Objective-C ARC. Blocks that strongly capture themselves
to call themselves will get the warning:
"Capturing <itself> strongly in this block is likely to
lead to a retain cycle". Cut down on the amount of noise
by noticing that user at some point sets the captured variable
to null in order to release it (and break the cycle).
// rdar://16944538

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210823 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaObjC/warn-retain-cycle.m