forked from OSchip/llvm-project
Fix BlockCommandComment::classof() to return true for objects of derived classes.
llvm-svn: 160323
This commit is contained in:
parent
a0d18e51f9
commit
a0473ab8bc
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue