[cfe-commits] r84213 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Thu Oct 15 15:26:21 PDT 2009


Author: kremenek
Date: Thu Oct 15 17:26:21 2009
New Revision: 84213

URL: http://llvm.org/viewvc/llvm-project?rev=84213&view=rev
Log:
Educate the retain/release checker about [NSCursor dragCopyCursor].
This fixes <rdar://problem/7306898>

Modified:
    cfe/trunk/lib/Analysis/CFRefCount.cpp

Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=84213&r1=84212&r2=84213&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Thu Oct 15 17:26:21 2009
@@ -1441,6 +1441,11 @@
                       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





More information about the cfe-commits mailing list