From ec1bd2546d343aad0d4d8d02c695493f59567553 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Fri, 4 Nov 2022 14:02:11 -0700 Subject: [PATCH] [NFC][lldb] Remove unnecessary branch in TypeSystemClang::DumpTypeDescription() Reviewed By: Michael137 Differential Revision: https://reviews.llvm.org/D137464 --- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index 5175ad8..cd142b7 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -9221,14 +9221,8 @@ void TypeSystemClang::DumpTypeDescription(lldb::opaque_compiler_type_t type, if (level == eDescriptionLevelVerbose) record_decl->dump(llvm_ostrm); else { - if (auto *cxx_record_decl = - llvm::dyn_cast(record_decl)) - cxx_record_decl->print(llvm_ostrm, - getASTContext().getPrintingPolicy(), - s->GetIndentLevel()); - else - record_decl->print(llvm_ostrm, getASTContext().getPrintingPolicy(), - s->GetIndentLevel()); + record_decl->print(llvm_ostrm, getASTContext().getPrintingPolicy(), + s->GetIndentLevel()); } } break; -- 2.7.4