Fix Casting

Use const_cast<> to avoid a cast-away-const error.

llvm-svn: 172562
This commit is contained in:
David Greene 2013-01-15 22:09:46 +00:00
parent 0d5a34bcad
commit 0516ba604b
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ void clang_getInclusions(CXTranslationUnit TU, CXInclusionVisitor CB,
// Callback to the client.
// FIXME: We should have a function to construct CXFiles.
CB((CXFile) FI.getContentCache()->OrigEntry,
CB(static_cast<CXFile>(
const_cast<FileEntry *>(FI.getContentCache()->OrigEntry)),
InclusionStack.data(), InclusionStack.size(), clientData);
}
}