diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-16 22:13:46 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-16 22:13:46 +0000 |
commit | beef1cb6ebfaea4542fb6d6686caae27787a75e0 (patch) | |
tree | 6884243e790827602d370dbfcdb473b08eafa0b2 | |
parent | ee07db7d91906d7ce371c972048e318901587933 (diff) |
Fix BlockCommandComment::classof() to return true for objects of derived classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160323 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Comment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/AST/Comment.h b/include/clang/AST/Comment.h index 28e87bfacf..9087b9cd66 100644 --- a/include/clang/AST/Comment.h +++ b/include/clang/AST/Comment.h @@ -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; } |