diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-04-26 04:32:23 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-04-26 04:32:23 +0000 |
commit | 01d152f43fc919ff648c70b24a3883d178c707c7 (patch) | |
tree | 98d4272f36fa552cbb28807731b1424baa6760c8 /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | 359087cadeea9d4637622b977f79dd2c57620316 (diff) | |
download | bcm5719-llvm-01d152f43fc919ff648c70b24a3883d178c707c7.tar.gz bcm5719-llvm-01d152f43fc919ff648c70b24a3883d178c707c7.zip |
Teach RetainCountChecker that it doesn't quite understand pthread_setspecific and it should just give up when it sees it. Fixes <rdar://problem/11282706>.
llvm-svn: 155613
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index b569e412c41..f7012799b8d 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -929,9 +929,9 @@ const RetainSummary * RetainSummaryManager::getSummary(const FunctionDecl *FD) { // filters. assert(ScratchArgs.isEmpty()); - if (FName == "pthread_create") { - // Part of: <rdar://problem/7299394>. This will be addressed - // better with IPA. + if (FName == "pthread_create" || FName == "pthread_setspecific") { + // Part of: <rdar://problem/7299394> and <rdar://problem/11282706>. + // This will be addressed better with IPA. S = getPersistentStopSummary(); } else if (FName == "NSMakeCollectable") { // Handle: id NSMakeCollectable(CFTypeRef) |