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 | e401a0ce4ac2b77c69ee08c09eb04a3a41652fd6 (patch) | |
tree | 349cdb887a3fca4ccc23c40e5e2f9a766acde6ec /lib/Analysis/CFRefCount.cpp | |
parent | 5efccb1ab81a029ddeb3ea18e239d0ddc124ec2b (diff) |
retain checker: Don't treat function's declared in macros differently.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index b845c52fcd..047d9f5844 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/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 { |