aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-06-28 16:25:36 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-06-28 16:25:36 +0000
commit8376f5934a18b950ac7323d8a38ed231623010fa (patch)
treeecdea8222eca5ee93f8351673bc3973f7b9536a2 /lib/AST/ASTContext.cpp
parentc3fee3539fd00a6ce21dc1f574baf76686640072 (diff)
Remove redundant check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 820288eae3..f208f06111 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -155,6 +155,8 @@ const RawComment *ASTContext::getRawCommentForDecl(const Decl *D) const {
return Pos->second;
const RawComment *RC = getRawCommentForDeclNoCache(D);
+ // If we found a comment, it should be a documentation comment.
+ assert(!RC || RC->isDocumentation());
DeclComments[D] = RC;
return RC;
}