From c879e6c8dabbfc268ebd1d8cc816c17c4a098c9c Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 10 Dec 2013 18:36:43 +0000 Subject: [PATCH] [AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() instead of lookupMethod(). 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 --- lib/AST/DeclObjC.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index eaf34c1de1..fb4b9dbd1f 100644 --- a/lib/AST/DeclObjC.cpp +++ b/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; -- 2.50.1