diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-06-02 17:14:13 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-06-02 17:14:13 +0000 |
commit | 0b6b0e7157d35b565d2840c94a816c18c9036d0d (patch) | |
tree | 85b8dc196c7a8fa1238a3a0f281fa2f89ebe32fc /clang/lib/Analysis/CFRefCount.cpp | |
parent | 7ccc9835efd4f2cacd8fac9de87cc38496eecb8d (diff) | |
download | bcm5719-llvm-0b6b0e7157d35b565d2840c94a816c18c9036d0d.tar.gz bcm5719-llvm-0b6b0e7157d35b565d2840c94a816c18c9036d0d.zip |
Teach the CF retain checker about "_init" methods. Fixes: <rdar://problem/5956379>
llvm-svn: 51872
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index 5660929a879..24971edcdde 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -607,7 +607,7 @@ RetainSummaryManager::getMethodSummary(ObjCMessageExpr* ME) { const char* s = S.getIdentifierInfoForSlot(0)->getName(); assert (ScratchArgs.empty()); - if (strncmp(s, "init", 4) == 0) + if (strncmp(s, "init", 4) == 0 || strncmp(s, "_init", 5) == 0) return getInitMethodSummary(S); // "copyXXX", "createXXX", "newXXX": allocators. |