summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-07 21:17:39 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-07 21:17:39 +0000
commitbcdb46830b3e303a02af185bef036a23c850eebb (patch)
treed3bbf9ad5e4a05798eb0e37889252a7d24649165 /clang/lib/Analysis/CFRefCount.cpp
parent8983f17ba029d247ef1f6843cba2ca4ef4c15e6e (diff)
downloadbcm5719-llvm-bcdb46830b3e303a02af185bef036a23c850eebb.tar.gz
bcm5719-llvm-bcdb46830b3e303a02af185bef036a23c850eebb.zip
Added support for "drain".
llvm-svn: 50831
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 6f8eae21864..7a9d608b71c 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud