]> granicus.if.org Git - clang/commitdiff
ASTContext.cpp: Appease msvc to cast NULL to typed pointer, or msvc mistakes NULL...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 6 Jul 2012 11:51:12 +0000 (11:51 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 6 Jul 2012 11:51:12 +0000 (11:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159818 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ASTContext.cpp

index f65f9c0afc33e6419b1300e8f18a7ab574728453..3dc53eb873740cead952ce4ecd690bf63fd2916b 100644 (file)
@@ -162,7 +162,7 @@ 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, NULL);
+  DeclComments[D] = RawAndParsedComment(RC, (comments::FullComment *)NULL);
   return RC;
 }