summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-09 17:18:27 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-09 17:18:27 +0000
commitffca3a21f10173ff7fa093fe54b799279e5f960f (patch)
tree5effae47663b04d346553051081f65d66c8792dd /clang/lib/AST/DeclObjC.cpp
parent93215eca9b4dbbb2554a0a4587c7ddc183fb2c3c (diff)
downloadbcm5719-llvm-ffca3a21f10173ff7fa093fe54b799279e5f960f.tar.gz
bcm5719-llvm-ffca3a21f10173ff7fa093fe54b799279e5f960f.zip
Provide a new kind of iterator, the specific_decl_iterator, that
filters the decls seen by decl_iterator with two criteria: the dynamic type of the declaration and a run-time predicate described by a member function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl considerably. It has no measurable performance impact. llvm-svn: 61994
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 7e62fa1130f..98d7164ba35 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -217,7 +217,7 @@ ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C, DeclContext *DC,
void ObjCMethodDecl::createImplicitParams(ASTContext &Context,
const ObjCInterfaceDecl *OID) {
QualType selfTy;
- if (isInstance()) {
+ if (isInstanceMethod()) {
// There may be no interface context due to error in declaration
// of the interface (which has been reported). Recover gracefully.
if (OID) {
OpenPOWER on IntegriCloud