lookupMethod also goes through categories, which we don't need there.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196942
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!IFace)
return false;
- if (const ObjCMethodDecl *MD = IFace->lookupMethod(Sel, /*isInstance=*/true,
- /*shallowCategoryLookup=*/true,
- /*followSuper=*/false)) {
+ if (const ObjCMethodDecl *MD = IFace->getMethod(Sel, /*isInstance=*/true)) {
if (MD->isThisDeclarationADesignatedInitializer()) {
if (InitMethod)
*InitMethod = MD;