Fix BlockCommandComment::classof() to return true for objects of derived classes.

llvm-svn: 160323
This commit is contained in:
Dmitri Gribenko 2012-07-16 22:13:46 +00:00
parent a0d18e51f9
commit a0473ab8bc
1 changed files with 2 additions and 1 deletions

View File

@ -510,7 +510,8 @@ public:
}
static bool classof(const Comment *C) {
return C->getCommentKind() == BlockCommandCommentKind;
return C->getCommentKind() >= FirstBlockCommandCommentConstant &&
C->getCommentKind() <= LastBlockCommandCommentConstant;
}
static bool classof(const BlockCommandComment *) { return true; }