diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index eaf34c1de1af..fb4b9dbd1f43 100644 --- a/clang/lib/AST/DeclObjC.cpp +++ b/clang/lib/AST/DeclObjC.cpp @@ -453,9 +453,7 @@ bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel, 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;