================
@@ -3098,6 +3107,23 @@ void Target::SetAllStopHooksActiveState(bool 
active_state) {
   }
 }
 
+// FIXME:  Ideally we would like to return a `const &` (const reference) 
instead
----------------
yln wrote:

Added new test to pin down the behavior: 27b1441d3e27a12a4
Made sure it goes red when order is messed up, for example:
```
for (auto &[_, hook] : llvm::reverse(m_stop_hooks))
    stop_hooks.push_back(hook);
```

https://github.com/llvm/llvm-project/pull/164506
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to