================ @@ -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()); ---------------- walter-erquinigo wrote:
could you log this some channel instead of consuming the error? That would still be NFC and would fit well within this PR https://github.com/llvm/llvm-project/pull/84219 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits