aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-06 15:40:08 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-06 15:40:08 +0000
commit9bf997e63d4e4004588b374e702a5e64da5ebb49 (patch)
tree9e82b598113fd15e2d85f84d8b19559bb2053a0d /lib/AST/ASTContext.cpp
parent1c9ae1ce8304a581d87d03bb84d89db477f61dba (diff)
Use C++ cast.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-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;
}