forked from OSchip/llvm-project
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:
parent
b2a143fad6
commit
497df9126f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue