mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-05 00:49:43 +00:00
[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:
parent
8f46ed79bd
commit
e919fc20a6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user