diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-13 22:55:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-13 22:55:33 +0000 |
commit | 6240cf190a660507777558660994cc566839c1a1 (patch) | |
tree | 5b728bd9651f540580a0b386af12ba3067e4dc5d /lib/Analysis/CFRefCount.cpp | |
parent | ab28c130934eeb22f6d30661e72c39430b96b3e2 (diff) |
retain/release checker: retained objects passed to pthread_create (as
the data argument) should not be tracked further until we support full IPA.
(fixes <rdar://problem/7299394>)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 755819197e..3a4120c642 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -971,7 +971,13 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) { switch (strlen(FName)) { default: break; - + case 14: + if (!memcmp(FName, "pthread_create", 14)) { + // Part of: <rdar://problem/7299394>. This will be addressed + // better with IPA. + S = getPersistentStopSummary(); + } + break; case 17: // Handle: id NSMakeCollectable(CFTypeRef) |