================ @@ -1912,7 +1919,30 @@ bool FormatEntity::Format(const Entry &entry, Stream &s, return true; } return false; + + case Entry::Type::ProgressCount: + if (Target *target = Target::GetTargetFromContexts(exe_ctx, sc)) { + Debugger &debugger = target->GetDebugger(); ---------------- DavidSpickett wrote:
You could combine this into the if below to save a line. Given that you have no null checking for target and GetDebugger returns a reference, you're assuming it will succeed. https://github.com/llvm/llvm-project/pull/121860 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits