aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-02-03 13:26:20 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-02-03 13:26:20 +0000
commit8d0eb2f71fb74bd7f5a145e811910273abc98a39 (patch)
treee6780266d070f4bf882eee38e8197fc031566b3c
parentb35cc2d46c4188a0b2d094b3104ce69092c34802 (diff)
libclang: remove unneeded const_cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174283 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/libclang/CIndexUSRs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp
index 7b732393de..01b00533aa 100644
--- a/tools/libclang/CIndexUSRs.cpp
+++ b/tools/libclang/CIndexUSRs.cpp
@@ -810,7 +810,7 @@ bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) {
return true;
USRGenerator UG(&D->getASTContext(), &Buf);
- UG->Visit(const_cast<Decl*>(D));
+ UG->Visit(D);
if (UG->ignoreResults())
return true;