From: Dmitri Gribenko Date: Fri, 6 Jul 2012 15:40:08 +0000 (+0000) Subject: Use C++ cast. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9bf997e63d4e4004588b374e702a5e64da5ebb49;p=clang Use C++ cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159830 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 3dc53eb873..99c5ff6d56 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -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(NULL)); return RC; }