[AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() instead of lookupMethod().

lookupMethod also goes through categories, which we don't need there.

llvm-svn: 196942
This commit is contained in:
Argyrios Kyrtzidis 2013-12-10 18:36:43 +00:00
parent 8f46ed79bd
commit e919fc20a6
1 changed files with 1 additions and 3 deletions

View File

@ -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;