summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/Comment.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Comment.h b/clang/include/clang/AST/Comment.h
index 28e87bfacff..9087b9cd66b 100644
--- a/clang/include/clang/AST/Comment.h
+++ b/clang/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; }
OpenPOWER on IntegriCloud