[Lldb-commits] [lldb] Change GetNumChildren()/CalculateNumChildren() methods return llvm::Expected (PR #84219)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 6 17:21:47 PST 2024
================
@@ -451,8 +451,13 @@ bool FormatManager::ShouldPrintAsOneLiner(ValueObject &valobj) {
if (valobj.GetSummaryFormat().get() != nullptr)
return valobj.GetSummaryFormat()->IsOneLiner();
+ auto num_children = valobj.GetNumChildren();
+ if (!num_children) {
+ llvm::consumeError(num_children.takeError());
----------------
adrian-prantl wrote:
Done!
https://github.com/llvm/llvm-project/pull/84219
More information about the lldb-commits
mailing list