]> granicus.if.org Git - clang/commitdiff
Do not treat **instance** methods "copyWithZone:" and "mutableCopyWithZone:" from...
authorTed Kremenek <kremenek@apple.com>
Wed, 7 May 2008 05:34:45 +0000 (05:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 7 May 2008 05:34:45 +0000 (05:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50802 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index 72c5e0ab603f0590193b4a1cb8b7cca2fbf78183..8115cd7a7463bb57c607a64f5eb55cd9fa0014c4 100644 (file)
@@ -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() {