mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 15:18:53 +08:00
'[NSAutoreleasePool addObject:]' has an 'autorelease' effect, not a DoNothing effect.
llvm-svn: 65301
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user