[Lldb-commits] [lldb] Change GetNumChildren()/CalculateNumChildren() methods return llvm::Expected (PR #84219)
Walter Erquinigo via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 6 11:41:33 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());
----------------
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
More information about the lldb-commits
mailing list