aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Comment.h3
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; }