[Lldb-commits] [PATCH] D150219: [lldb][NFCI] Remove n^2 loops and simplify iterator usage

Felipe de Azevedo Piovezan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 9 12:16:59 PDT 2023


fdeazeve added inline comments.


================
Comment at: lldb/source/Utility/Broadcaster.cpp:382
+    auto iter = find_if(begin, end, listener_matches_and_shared_bits);
+    if (iter == m_event_map.end())
       break;
----------------
Oh, this should be `== end`


================
Comment at: lldb/source/Utility/Broadcaster.cpp:436
+    iter = find_if(iter, end, events_predicate);
+    if (iter == m_event_map.end())
       break;
----------------
this should be `== end`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150219/new/

https://reviews.llvm.org/D150219



More information about the lldb-commits mailing list