[Lldb-commits] [lldb] [lldb] Small cleanup of ProcessEventData::ShouldStop (PR #98154)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 9 06:17:04 PDT 2024


================
@@ -4194,8 +4188,7 @@ bool Process::ProcessEventData::ShouldStop(Event *event_ptr,
   // is, and it's better to let the user decide than continue behind their
   // backs.
 
-  for (idx = 0; idx < not_suspended_thread_list.GetSize(); ++idx) {
-    curr_thread_list = process_sp->GetThreadList();
----------------
labath wrote:

curr_thread_list is a reference to the process's thread list, which made this a self-assignment.

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


More information about the lldb-commits mailing list