forked from OSchip/llvm-project
Fix Casting
Use const_cast<> to avoid a cast-away-const error. llvm-svn: 172562
This commit is contained in:
parent
0d5a34bcad
commit
0516ba604b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue