Switch a C-style cast over to a const_cast. No functionality change
llvm-svn: 137218
This commit is contained in:
parent
36a3abc671
commit
349c403b46
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue