aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-14 00:25:25 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-14 00:25:25 +0000
commit0446f51e1c0e16bc9e3f1311967e31ac6dc40bab (patch)
treed77b5f1cbd4e5fd0ec2571d04a0f7aab49e83911
parent1c030e9a3f290a1eea5de82fe1e63dfde2bd8f1e (diff)
Remove an unneeded const_cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172370 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AST/InheritViz.cpp2
1 files changed, 1 insertions, 1 deletions
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<CXXRecordDecl *>(this));
+ QualType Self = Context.getTypeDeclType(this);
std::string ErrMsg;
sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg);
if (Filename.isEmpty()) {