retain/release checker: Use the ObjCMethodDecl in the @implementation if no

matching ObjCMethodDecl exists in the @interface.

llvm-svn: 70474
This commit is contained in:
Ted Kremenek 2009-04-30 05:47:23 +00:00
parent b2a143fad6
commit 497df9126f
1 changed files with 4 additions and 2 deletions

View File

@ -770,8 +770,10 @@ public:
IdentifierInfo *ClsName = ID->getIdentifier();
QualType ResultTy = MD->getResultType();
// Resolve the method decl last.
MD = ResolveToInterfaceMethodDecl(MD, Ctx);
// Resolve the method decl last.
if (const ObjCMethodDecl *InterfaceMD =
ResolveToInterfaceMethodDecl(MD, Ctx))
MD = InterfaceMD;
if (MD->isInstanceMethod())
return getInstanceMethodSummary(S, ClsName, ID, MD, ResultTy);