[cfe-commits] r58771 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Ted Kremenek
kremenek at apple.com
Wed Nov 5 14:17:20 PST 2008
Author: kremenek
Date: Wed Nov 5 16:17:20 2008
New Revision: 58771
URL: http://llvm.org/viewvc/llvm-project?rev=58771&view=rev
Log:
Fix regression with handling of CFMakeCollectable.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=58771&r1=58770&r2=58771&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Wed Nov 5 16:17:20 2008
@@ -787,7 +787,9 @@
RetainSummary* RetainSummaryManager::getCFSummary(FunctionDecl* FD,
const char* FName) {
-
+ if (FName[0] == 'C' && FName[1] == 'F')
+ FName += 2;
+
if (isRetain(FD, FName))
return getUnarySummary(FD, cfretain);
@@ -803,6 +805,9 @@
RetainSummary* RetainSummaryManager::getCGSummary(FunctionDecl* FD,
const char* FName) {
+ if (FName[0] == 'C' && FName[1] == 'G')
+ FName += 2;
+
if (isRelease(FD, FName))
return getUnarySummary(FD, cfrelease);
More information about the cfe-commits
mailing list