diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-10 18:36:43 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-12-10 18:36:43 +0000 |
| commit | e919fc20a66a9e2c73085693e38c2a21762bbd63 (patch) | |
| tree | d4e80cabcf08d3f78ccda61267033d91c184ef42 | |
| parent | 8f46ed79bd179576d714c80b67b6c6d5a201fbb9 (diff) | |
| download | bcm5719-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.cpp | 4 |
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; |

