diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-14 00:25:25 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-14 00:25:25 +0000 |
| commit | aaf7f2978c7a74ede852bc9ecc14cf5e643bae28 (patch) | |
| tree | a8fa68f124e9bef2bbd270887cfed704129e898e | |
| parent | c99ee6b336edf070bb32d2f11339169daff91ddb (diff) | |
| download | bcm5719-llvm-aaf7f2978c7a74ede852bc9ecc14cf5e643bae28.tar.gz bcm5719-llvm-aaf7f2978c7a74ede852bc9ecc14cf5e643bae28.zip | |
Remove an unneeded const_cast
llvm-svn: 172370
| -rw-r--r-- | clang/lib/AST/InheritViz.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CXXRecordDecl *>(this)); + QualType Self = Context.getTypeDeclType(this); std::string ErrMsg; sys::Path Filename = sys::Path::GetTemporaryDirectory(&ErrMsg); if (Filename.isEmpty()) { |

