aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/Indexing.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-26 21:49:50 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-26 21:49:50 +0000
commit8c718e7d87018919b5b84b0d545fe477b2d532d1 (patch)
tree0c26111828c51bdd0a884032d82198ebae1f7cac /tools/libclang/Indexing.cpp
parent337ee24785a784ba5418c2e78716d15b94fd57f0 (diff)
libclang: type safety for CXTranslationUnitImpl::CIdx
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r--tools/libclang/Indexing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp
index 4a51e32066..6f01a0b349 100644
--- a/tools/libclang/Indexing.cpp
+++ b/tools/libclang/Indexing.cpp
@@ -759,7 +759,7 @@ static void clang_indexTranslationUnit_Impl(void *UserData) {
if (!client_index_callbacks || index_callbacks_size == 0)
return;
- CIndexer *CXXIdx = (CIndexer*)TU->CIdx;
+ CIndexer *CXXIdx = TU->CIdx;
if (CXXIdx->isOptEnabled(CXGlobalOpt_ThreadBackgroundPriorityForIndexing))
setThreadBackgroundPriority();