]> granicus.if.org Git - clang/commitdiff
Use C++ cast.
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 6 Jul 2012 15:40:08 +0000 (15:40 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 6 Jul 2012 15:40:08 +0000 (15:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159830 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index 3dc53eb873740cead952ce4ecd690bf63fd2916b..99c5ff6d5673a5bbcd4a68a6750d5c40728b28b9 100644 (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;
 }