[cfe-commits] r58666 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Ted Kremenek
kremenek at apple.com
Mon Nov 3 16:36:13 PST 2008
Author: kremenek
Date: Mon Nov 3 18:36:12 2008
New Revision: 58666
URL: http://llvm.org/viewvc/llvm-project?rev=58666&view=rev
Log:
Handle prefix '_' that may appear in front of the name of 'Release' functions
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=58666&r1=58665&r2=58666&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Mon Nov 3 18:36:12 2008
@@ -741,6 +741,9 @@
break;
}
}
+
+ // Ignore the prefix '_'
+ while (*FName == '_') ++FName;
if (FName[0] == 'C') {
if (FName[1] == 'F')
@@ -780,9 +783,6 @@
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);
@@ -798,9 +798,6 @@
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