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

Argyrios Kyrtzidis akyrtzi at gmail.com
Tue Dec 10 10:36:43 PST 2013


Author: akirtzidis
Date: Tue Dec 10 12:36:43 2013
New Revision: 196942

URL: http://llvm.org/viewvc/llvm-project?rev=196942&view=rev
Log:
[AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() instead of lookupMethod().

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

Modified:
    cfe/trunk/lib/AST/DeclObjC.cpp

Modified: cfe/trunk/lib/AST/DeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclObjC.cpp?rev=196942&r1=196941&r2=196942&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclObjC.cpp (original)
+++ cfe/trunk/lib/AST/DeclObjC.cpp Tue Dec 10 12:36:43 2013
@@ -453,9 +453,7 @@ bool ObjCInterfaceDecl::isDesignatedInit
   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;





More information about the cfe-commits mailing list