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 | 4e45d80bfeef00c86a190e13fb9b9f74383f9a63 (patch) | |
tree | a788712d6a62ee0dee4891e4cb7285c133c702fe /clang/lib/Analysis/CFRefCount.cpp | |
parent | 3f23601b00fa75d4aa2089c3db5d32a40200bb1c (diff) | |
download | bcm5719-llvm-4e45d80bfeef00c86a190e13fb9b9f74383f9a63.tar.gz bcm5719-llvm-4e45d80bfeef00c86a190e13fb9b9f74383f9a63.zip |
Educate the retain/release checker about [NSCursor dragCopyCursor].
This fixes <rdar://problem/7306898>
llvm-svn: 84213
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 2da0297e412..49cd4151a6a 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/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 |