summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-23 02:31:16 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-23 02:31:16 +0000
commit7d4fc5bcdcc7ab16cfcbbadc037a6358d81c40d5 (patch)
tree1fb29430172065380430cb942440b1158e817e98
parent77170dcb1439e4efddfdd9a3538f7d6be61a2247 (diff)
downloadbcm5719-llvm-7d4fc5bcdcc7ab16cfcbbadc037a6358d81c40d5.tar.gz
bcm5719-llvm-7d4fc5bcdcc7ab16cfcbbadc037a6358d81c40d5.zip
'[NSAutoreleasePool addObject:]' has an 'autorelease' effect, not a DoNothing effect.
llvm-svn: 65301
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 29ad73f0f90..e7c116588da 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -829,7 +829,7 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) {
break;
}
- // [PR 3337] Use 'getDesugaredType' to strip away any typedefs on the
+ // [PR 3337]q Use 'getDesugaredType' to strip away any typedefs on the
// function's type.
FunctionType* FT = cast<FunctionType>(FD->getType()->getDesugaredType());
const char* FName = FD->getIdentifier()->getName();
@@ -1088,7 +1088,7 @@ void RetainSummaryManager::InitializeClassMethodSummaries() {
addClsMethSummary(&Ctx.Idents.get("NSAutoreleasePool"),
GetUnarySelector("addObject", Ctx),
getPersistentSummary(RetEffect::MakeNoRet(),
- DoNothing, DoNothing));
+ DoNothing, Autorelease));
}
void RetainSummaryManager::InitializeMethodSummaries() {
OpenPOWER on IntegriCloud