diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-15 22:26:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-15 22:26:21 +0000 |
commit | e622554767b56d9dbe61ae07dda839db1803df34 (patch) | |
tree | 29907449e091d0a39d9966bd5ea0e0dc8050d1e1 /lib/Analysis/CFRefCount.cpp | |
parent | 6fe2b7a3da783395379b12c75e4e7608809f9062 (diff) |
Educate the retain/release checker about [NSCursor dragCopyCursor].
This fixes <rdar://problem/7306898>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 |