diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-04 15:34:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-04 15:34:07 +0000 |
commit | df76e6d09d97a95dd9018a930b031739f7f14a8a (patch) | |
tree | ad8244b87df7c6724a7ef81859eecb219e56d305 | |
parent | 566421c8a3f8e0748e8e79276d714a4ba676a083 (diff) | |
download | bcm5719-llvm-df76e6d09d97a95dd9018a930b031739f7f14a8a.tar.gz bcm5719-llvm-df76e6d09d97a95dd9018a930b031739f7f14a8a.zip |
retain checker: Don't treat function's declared in macros differently.
llvm-svn: 70869
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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 { |