[cfe-commits] r42720 - /cfe/trunk/include/clang/AST/Decl.h
Chris Lattner
sabre at nondot.org
Sun Oct 7 00:04:41 PDT 2007
Author: lattner
Date: Sun Oct 7 02:04:41 2007
New Revision: 42720
URL: http://llvm.org/viewvc/llvm-project?rev=42720&view=rev
Log:
classof isn't right. This is causing assertion failures somehow now.
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=42720&r1=42719&r2=42720&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Sun Oct 7 02:04:41 2007
@@ -156,10 +156,11 @@
const ScopedDecl *getNextDeclarator() const { return NextDeclarator; }
void setNextDeclarator(ScopedDecl *N) { NextDeclarator = N; }
- // Implement isa/cast/dyncast/etc. - true for all ValueDecl's and TypeDecl's.
+ // Implement isa/cast/dyncast/etc - true for all ValueDecl's and TypeDecl's.
static bool classof(const Decl *D) {
return (D->getKind() >= Function && D->getKind() <= EnumConstant) ||
- (D->getKind() >= Typedef && D->getKind() <= Enum);
+ (D->getKind() >= Typedef && D->getKind() <= Enum) ||
+ D->getKind() == ObjcProtocol || D->getKind() == ObjcInterface;
}
static bool classof(const ScopedDecl *D) { return true; }
};
More information about the cfe-commits
mailing list