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

Ted Kremenek kremenek at apple.com
Wed May 7 14:17:39 PDT 2008


Author: kremenek
Date: Wed May  7 16:17:39 2008
New Revision: 50831

URL: http://llvm.org/viewvc/llvm-project?rev=50831&view=rev
Log:
Added support for "drain".

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=50831&r1=50830&r2=50831&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Wed May  7 16:17:39 2008
@@ -726,6 +726,10 @@
   // Create the "release" selector.
   Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : DecRef);
   ObjCMethSummaries[ GetNullarySelector("release", Ctx) ] = Summ;
+  
+  // Create the "drain" selector.
+  Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : DecRef);
+  ObjCMethSummaries[ GetNullarySelector("drain", Ctx) ] = Summ;
 
   // Create the "autorelease" selector.
   Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : StopTracking);





More information about the cfe-commits mailing list