summaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-07 05:34:45 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-07 05:34:45 +0000
commit05a7b0e109392c86e2dd0aeb1663a68934136359 (patch)
treeb6721ac3d73ef7b628517349c5ae612bb0588290 /lib/Analysis/CFRefCount.cpp
parent6d6eb57225b53fb627c565861d1d0e90645400d1 (diff)
downloadclang-05a7b0e109392c86e2dd0aeb1663a68934136359.tar.gz
clang-05a7b0e109392c86e2dd0aeb1663a68934136359.tar.bz2
clang-05a7b0e109392c86e2dd0aeb1663a68934136359.tar.xz
Do not treat **instance** methods "copyWithZone:" and "mutableCopyWithZone:" from NSObject as allocators.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 72c5e0ab60..8115cd7a74 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -691,24 +691,7 @@ void RetainSummaryManager::InitializeInstMethSummaries() {
ObjCInstMethSummaries[ GetNullarySelector("new", Ctx) ] = Summ;
// Create the "allocWithZone:" selector.
- ObjCInstMethSummaries[ GetUnarySelector("allocWithZone", Ctx) ] = Summ;
-
- // Create the "copyWithZone:" selector.
- ObjCInstMethSummaries[ GetUnarySelector("copyWithZone", Ctx) ] = Summ;
-
- // Create the "mutableCopyWithZone:" selector.
- ObjCInstMethSummaries[ GetUnarySelector("mutableCopyWithZone", Ctx) ] = Summ;
-
- // ** Special cases! **
- //
- // FIXME: It would be great if this one day was in a file, rather than
- // hardcoded into the source code.
- //
-
- // NSProcessInfo::processInfo - This instance method does not return
- // an owning reference.
- ObjCInstMethSummaries[ GetNullarySelector("processInfo", Ctx) ] =
- getPersistentSummary(RetEffect::MakeNoRet());
+ ObjCInstMethSummaries[ GetUnarySelector("allocWithZone", Ctx) ] = Summ;
}
void RetainSummaryManager::InitializeMethSummaries() {