mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 04:51:38 +00:00
Remove an unneeded const_cast
llvm-svn: 172370
This commit is contained in:
parent
c99ee6b336
commit
aaf7f2978c
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user