]> granicus.if.org Git - clang/commitdiff
Educate the retain/release checker about [NSCursor dragCopyCursor].
authorTed Kremenek <kremenek@apple.com>
Thu, 15 Oct 2009 22:26:21 +0000 (22:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 15 Oct 2009 22:26:21 +0000 (22:26 +0000)
This fixes <rdar://problem/7306898>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 2da0297e41236abd81183b182cebcbc971659cfe..49cd4151a6a2b3070bab4b0010d153498f262121 100644 (file)
@@ -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