From aaf7f2978c7a74ede852bc9ecc14cf5e643bae28 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Mon, 14 Jan 2013 00:25:25 +0000 Subject: Remove an unneeded const_cast llvm-svn: 172370 --- clang/lib/AST/InheritViz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib') diff --git a/clang/lib/AST/InheritViz.cpp b/clang/lib/AST/InheritViz.cpp index b70520f44dc..e03632a71e0 100644 --- a/clang/lib/AST/InheritViz.cpp +++ b/clang/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()) { -- cgit v1.2.3