diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-28 13:37:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-10-28 13:37:11 +0000 |
commit | 854625f7347e4418803fe4aa9131928408e4dc53 (patch) | |
tree | a29c3a83837a84340cb5ba8af64413941472ae22 /tools/libclang/CIndexUSRs.cpp | |
parent | aa9807a85959ffbdc5d9f649d7b24b9b2056d2cd (diff) | |
download | clang-854625f7347e4418803fe4aa9131928408e4dc53.tar.gz clang-854625f7347e4418803fe4aa9131928408e4dc53.tar.bz2 clang-854625f7347e4418803fe4aa9131928408e4dc53.tar.xz |
Use const_cast to make it obvious that it's just removing constness (and silence warnings).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143193 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/CIndexUSRs.cpp')
-rw-r--r-- | tools/libclang/CIndexUSRs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndexUSRs.cpp b/tools/libclang/CIndexUSRs.cpp index 1219c2eea1..11b124c562 100644 --- a/tools/libclang/CIndexUSRs.cpp +++ b/tools/libclang/CIndexUSRs.cpp @@ -817,7 +817,7 @@ bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) { { USRGenerator UG(&D->getASTContext(), &Buf); - UG->Visit((Decl*)D); + UG->Visit(const_cast<Decl*>(D)); if (UG->ignoreResults()) return true; |