[Lldb-commits] [lldb] [lldb] Fix possible invalidated iterator. (PR #198482)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Tue May 19 05:28:09 PDT 2026


================
@@ -977,20 +978,18 @@ void Target::DescribeBreakpointOverrides(Stream &stream,
     return;
   }
 
-  auto begin = idxs.begin();
-  auto end = idxs.end();
-  bool empty = idxs.empty();
+  const bool empty = idxs.empty();
   bool print_first = true;
-  for (auto const &elem : m_breakpoint_overrides) {
-    auto idx_pos = empty ? end : std::find(begin, end, elem.first);
-    if (empty || idx_pos != end) {
+  for (const auto &[id, resolver] : m_breakpoint_overrides) {
----------------
felipepiovezan wrote:

is this diff related to the change?

https://github.com/llvm/llvm-project/pull/198482


More information about the lldb-commits mailing list