[cfe-commits] r65301 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Ted Kremenek
kremenek at apple.com
Sun Feb 22 18:31:16 PST 2009
Author: kremenek
Date: Sun Feb 22 20:31:16 2009
New Revision: 65301
URL: http://llvm.org/viewvc/llvm-project?rev=65301&view=rev
Log:
'[NSAutoreleasePool addObject:]' has an 'autorelease' effect, not a DoNothing effect.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=65301&r1=65300&r2=65301&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Sun Feb 22 20:31:16 2009
@@ -829,7 +829,7 @@
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 @@
addClsMethSummary(&Ctx.Idents.get("NSAutoreleasePool"),
GetUnarySelector("addObject", Ctx),
getPersistentSummary(RetEffect::MakeNoRet(),
- DoNothing, DoNothing));
+ DoNothing, Autorelease));
}
void RetainSummaryManager::InitializeMethodSummaries() {
More information about the cfe-commits
mailing list