diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-23 02:31:16 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-23 02:31:16 +0000 |
commit | 022a3c4e9e19854d6eadb3180a6af91df80817bc (patch) | |
tree | a03a33ea5c1a7cf6e4a2bc5eee24858538dc5126 /lib/Analysis/CFRefCount.cpp | |
parent | d526c2f2ef28643c15589135b59eb4a8d9f9414c (diff) |
'[NSAutoreleasePool addObject:]' has an 'autorelease' effect, not a DoNothing effect.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65301 91177308-0d34-0410-b5e6-96231b3b80d8
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 29ad73f0f9..e7c116588d 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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() { |