aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Analysis/CFRefCount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index fe7a198970..87a6b38b87 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/lib/Analysis/CFRefCount.cpp
@@ -54,6 +54,7 @@ using llvm::CStrInCStrNoCase;
// not release it."
//
static bool followsFundamentalRule(const char* s) {
+ while (*s == '_') ++s;
return CStrInCStrNoCase(s, "create") || CStrInCStrNoCase(s, "copy") ||
CStrInCStrNoCase(s, "new") == s || CStrInCStrNoCase(s, "alloc") == s;
}
@@ -709,9 +710,8 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) {
// No summary. Generate one.
const char* FName = FD->getIdentifier()->getName();
-
- RetainSummary *S = 0;
+ RetainSummary *S = 0;
FunctionType* FT = dyn_cast<FunctionType>(FD->getType());
do {