aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/AST/ASTContext.cpp3
1 files changed, 2 insertions, 1 deletions
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<comments::FullComment *>(NULL));
return RC;
}