diff options
author | David Greene <greened@obbligato.org> | 2013-01-15 22:09:46 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2013-01-15 22:09:46 +0000 |
commit | 61eacf0f4f912ef4834ff4ed5d7072b655fe91bf (patch) | |
tree | 036e20e53cea72e7f6402afa6225dd55db0c6f1c | |
parent | 16303fcc569ea149dc2de38ff9e367d2d4831cee (diff) |
Fix Casting
Use const_cast<> to avoid a cast-away-const error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172562 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/libclang/CIndexInclusionStack.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libclang/CIndexInclusionStack.cpp b/tools/libclang/CIndexInclusionStack.cpp index f613f0f1c5..4ee1467274 100644 --- a/tools/libclang/CIndexInclusionStack.cpp +++ b/tools/libclang/CIndexInclusionStack.cpp @@ -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); } } |