forked from OSchip/llvm-project
retain checker: Don't treat function's declared in macros differently.
llvm-svn: 70869
This commit is contained in:
parent
566421c8a3
commit
df76e6d09d
|
@ -870,19 +870,12 @@ static bool isRelease(FunctionDecl* FD, const char* FName) {
|
|||
}
|
||||
|
||||
RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) {
|
||||
|
||||
SourceLocation Loc = FD->getLocation();
|
||||
|
||||
if (!Loc.isFileID())
|
||||
return getDefaultSummary();
|
||||
|
||||
// Look up a summary in our cache of FunctionDecls -> Summaries.
|
||||
FuncSummariesTy::iterator I = FuncSummaries.find(FD);
|
||||
|
||||
if (I != FuncSummaries.end())
|
||||
return I->second;
|
||||
|
||||
// No summary. Generate one.
|
||||
// No summary? Generate one.
|
||||
RetainSummary *S = 0;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue