diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-09 17:18:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-09 17:18:27 +0000 |
commit | f8d49f64ef6ab7e632717a31631fc289aab69428 (patch) | |
tree | 6f6aff3c21729eda614a2e29a95798a356f81e9f /lib/Sema/SemaType.cpp | |
parent | 088a52d8a94666f0264b656e05921b9c5b091f28 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index f780342a60..8a459f4d3e 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -568,7 +568,7 @@ QualType Sema::ObjCGetTypeForMethodDefinition(DeclTy *D) { llvm::SmallVector<QualType, 16> ArgTys; // Add the first two invisible argument types for self and _cmd. - if (MDecl->isInstance()) { + if (MDecl->isInstanceMethod()) { QualType selfTy = Context.getObjCInterfaceType(MDecl->getClassInterface()); selfTy = Context.getPointerType(selfTy); ArgTys.push_back(selfTy); |