diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-07 05:34:45 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-07 05:34:45 +0000 |
commit | 7bf9dc773c075b145d28ff12efa83421f15aba88 (patch) | |
tree | 585af16ddc31d95bae2447c24745d554410287e4 /clang/lib/Analysis | |
parent | caa8acebe738aaa17fcbaa99b3f39da7874a6063 (diff) | |
download | bcm5719-llvm-7bf9dc773c075b145d28ff12efa83421f15aba88.tar.gz bcm5719-llvm-7bf9dc773c075b145d28ff12efa83421f15aba88.zip |
Do not treat **instance** methods "copyWithZone:" and "mutableCopyWithZone:" from NSObject as allocators.
llvm-svn: 50802
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 72c5e0ab603..8115cd7a746 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/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() { |