Use C++ cast.

llvm-svn: 159830
This commit is contained in:
Dmitri Gribenko 2012-07-06 15:40:08 +00:00
parent b2c42807a4
commit 08630059c5
1 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,8 @@ const RawComment *ASTContext::getRawCommentForDecl(const Decl *D) const {
const RawComment *RC = getRawCommentForDeclNoCache(D);
// If we found a comment, it should be a documentation comment.
assert(!RC || RC->isDocumentation());
DeclComments[D] = RawAndParsedComment(RC, (comments::FullComment *)NULL);
DeclComments[D] =
RawAndParsedComment(RC, static_cast<comments::FullComment *>(NULL));
return RC;
}