From: Ted Kremenek Date: Wed, 7 May 2008 21:17:39 +0000 (+0000) Subject: Added support for "drain". X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=299e8158d63d69830cca0187f4003cba1e66081f;p=clang Added support for "drain". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50831 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 6f8eae2186..7a9d608b71 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -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);