]> granicus.if.org Git - clang/commitdiff
libclang: remove unneeded const_cast
authorDmitri Gribenko <gribozavr@gmail.com>
Sun, 3 Feb 2013 13:26:20 +0000 (13:26 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sun, 3 Feb 2013 13:26:20 +0000 (13:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174283 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndexUSRs.cpp

index 7b732393de4506529b44e88343039a93c6b92309..01b00533aa993be5a84d44e1165326c101207651 100644 (file)
@@ -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;