diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/AST/DeclObjC.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp index eaf34c1de1a..fb4b9dbd1f4 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; |