From e622554767b56d9dbe61ae07dda839db1803df34 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 15 Oct 2009 22:26:21 +0000 Subject: [PATCH] Educate the retain/release checker about [NSCursor dragCopyCursor]. This fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84213 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/CFRefCount.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 2da0297e41..49cd4151a6 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1441,6 +1441,11 @@ void RetainSummaryManager::InitializeClassMethodSummaries() { getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, Autorelease)); + // Create a summary for [NSCursor dragCopyCursor]. + addClassMethSummary("NSCursor", "dragCopyCursor", + getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, + DoNothing)); + // Create the summaries for [NSObject performSelector...]. We treat // these as 'stop tracking' for the arguments because they are often // used for delegates that can release the object. When we have better -- 2.50.1