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;


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to