From 5c8897d37df81cb89847bf2acfc61a06cb86cf10 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Thu, 28 Jun 2012 16:25:36 +0000 Subject: Remove redundant check. llvm-svn: 159355 --- clang/lib/AST/ASTContext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 820288eae38..f208f06111e 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/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; } -- cgit v1.2.3