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
diff --git a/include/clang/AST/Comment.h b/include/clang/AST/Comment.h
index 28e87bf..9087b9c 100644
--- a/include/clang/AST/Comment.h
+++ b/include/clang/AST/Comment.h
@@ -510,7 +510,8 @@
   }
 
   static bool classof(const Comment *C) {
-    return C->getCommentKind() == BlockCommandCommentKind;
+    return C->getCommentKind() >= FirstBlockCommandCommentConstant &&
+           C->getCommentKind() <= LastBlockCommandCommentConstant;
   }
 
   static bool classof(const BlockCommandComment *) { return true; }