diff options
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 4a20fbec87..455ac78be2 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -530,8 +530,8 @@ RetainSummary* RetainSummaryManager::getMethodSummary(Selector S) { // "initXXX": pass-through for receiver. const char* s = S.getIdentifierInfoForSlot(0)->getName(); - - if (s[0] == 'i' && s[10] == 'n' && s[2] == 'i' && s[3] == 't') + + if (!strncmp(s, "init", 4)) return getInitMethodSummary(S); return 0; |