[Lldb-commits] [PATCH] D137464: [NFC][lldb] Remove unnecessary branch in TypeSystemClang::DumpTypeDescription()
Arthur Eubanks via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 7 10:29:28 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGec1bd2546d34: [NFC][lldb] Remove unnecessary branch in TypeSystemClang::DumpTypeDescription() (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137464/new/
https://reviews.llvm.org/D137464
Files:
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Index: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
===================================================================
--- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -9221,14 +9221,8 @@
if (level == eDescriptionLevelVerbose)
record_decl->dump(llvm_ostrm);
else {
- if (auto *cxx_record_decl =
- llvm::dyn_cast<clang::CXXRecordDecl>(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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137464.473742.patch
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221107/2fdeb0c5/attachment.bin>
More information about the lldb-commits
mailing list