================ @@ -40,7 +40,10 @@ SBProgress::~SBProgress() = default; void SBProgress::Increment(uint64_t amount, const char *description) { LLDB_INSTRUMENT_VA(amount, description); - m_opaque_up->Increment(amount, description); + std::optional<std::string> description_opt; + if (description && description[0]) ---------------- dmpots wrote:
So this only calls increment if there is a non-null and non-empty description. Is that the correct behavior? Or should we still be calling increment with a `nullopt` in that case? https://github.com/llvm/llvm-project/pull/128971 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits