summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-10 18:36:43 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-12-10 18:36:43 +0000
commite919fc20a66a9e2c73085693e38c2a21762bbd63 (patch)
treed4e80cabcf08d3f78ccda61267033d91c184ef42
parent8f46ed79bd179576d714c80b67b6c6d5a201fbb9 (diff)
downloadbcm5719-llvm-e919fc20a66a9e2c73085693e38c2a21762bbd63.tar.gz
bcm5719-llvm-e919fc20a66a9e2c73085693e38c2a21762bbd63.zip
[AST] In ObjCInterfaceDecl::isDesignatedInitializer(), use getMethod() instead of lookupMethod().
lookupMethod also goes through categories, which we don't need there. llvm-svn: 196942
-rw-r--r--clang/lib/AST/DeclObjC.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index eaf34c1de1a..fb4b9dbd1f4 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud