]> granicus.if.org Git - clang/commitdiff
Added support for "drain".
authorTed Kremenek <kremenek@apple.com>
Wed, 7 May 2008 21:17:39 +0000 (21:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 7 May 2008 21:17:39 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50831 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 6f8eae2186492c9ff26690fc3e679527c30b0db6..7a9d608b71ce496109a2734c09846eed4d8c1fb0 100644 (file)
@@ -726,6 +726,10 @@ void RetainSummaryManager::InitializeMethSummaries() {
   // 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);