From: Dmitri Gribenko Date: Mon, 14 Jan 2013 00:25:25 +0000 (+0000) Subject: Remove an unneeded const_cast X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0446f51e1c0e16bc9e3f1311967e31ac6dc40bab;p=clang Remove an unneeded const_cast git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172370 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/InheritViz.cpp b/lib/AST/InheritViz.cpp index b70520f44d..e03632a71e 100644 --- a/lib/AST/InheritViz.cpp +++ b/lib/AST/InheritViz.cpp @@ -134,7 +134,7 @@ InheritanceHierarchyWriter::WriteNodeReference(QualType Type, /// viewInheritance - Display the inheritance hierarchy of this C++ /// class using GraphViz. void CXXRecordDecl::viewInheritance(ASTContext& Context) const { - QualType Self = Context.getTypeDeclType(const_cast(this)); + QualType Self = Context.getTypeDeclType(this); std::string ErrMsg; sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); if (Filename.isEmpty()) {