From df76e6d09d97a95dd9018a930b031739f7f14a8a Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 4 May 2009 15:34:07 +0000 Subject: retain checker: Don't treat function's declared in macros differently. llvm-svn: 70869 --- clang/lib/Analysis/CFRefCount.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'clang/lib/Analysis/CFRefCount.cpp') diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index b845c52fcd6..047d9f5844d 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -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 { -- cgit v1.2.3