diff options
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 538f4f2722..e1483d692d 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1121,6 +1121,10 @@ RetainSummaryManager::getMethodSummaryFromAnnotations(ObjCMethodDecl *MD) { ScratchArgs.push_back(std::make_pair(i, DecRef)); hasArgEffect = true; } + else if ((*I)->getAttr<ObjCOwnershipMakeCollectableAttr>()) { + ScratchArgs.push_back(std::make_pair(i, MakeCollectable)); + hasArgEffect = true; + } } if (!hasRetEffect && !hasArgEffect) |