diff options
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 2 |
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; } |