From: Dmitri Gribenko Date: Sun, 3 Feb 2013 13:26:20 +0000 (+0000) Subject: libclang: remove unneeded const_cast X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d0eb2f71fb74bd7f5a145e811910273abc98a39;p=clang libclang: remove unneeded const_cast git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174283 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 &Buf) { return true; USRGenerator UG(&D->getASTContext(), &Buf); - UG->Visit(const_cast(D)); + UG->Visit(D); if (UG->ignoreResults()) return true;