Switch a C-style cast over to a const_cast. No functionality change

llvm-svn: 137218
This commit is contained in:
Douglas Gregor 2011-08-10 16:34:38 +00:00
parent 36a3abc671
commit 349c403b46
1 changed files with 1 additions and 1 deletions

View File

@ -604,7 +604,7 @@ CXCompletionString clang_getCursorCompletionString(CXCursor cursor) {
Sema &S = unit->getSema();
CodeCompletionAllocator *Allocator
= unit->getCursorCompletionAllocator().getPtr();
CodeCompletionResult Result((IdentifierInfo *)MacroInfo);
CodeCompletionResult Result(const_cast<IdentifierInfo *>(MacroInfo));
CodeCompletionString *String
= Result.CreateCodeCompletionString(S, *Allocator);
return String;