summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-16 22:13:46 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-16 22:13:46 +0000
commita0473ab8bc1efddd00c3a37c06d252aa39c07d1b (patch)
tree39294ce7d880d9524b5bb81708436ec939883395
parenta0d18e51f94367bfbb9bc26c74c8a62377d7ad83 (diff)
downloadbcm5719-llvm-a0473ab8bc1efddd00c3a37c06d252aa39c07d1b.tar.gz
bcm5719-llvm-a0473ab8bc1efddd00c3a37c06d252aa39c07d1b.zip
Fix BlockCommandComment::classof() to return true for objects of derived classes.
llvm-svn: 160323
-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