aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-06-09 01:56:27 -0700
committerGitHub <noreply@github.com>2025-06-09 09:56:27 +0100
commitdf4b453516ebf9aa03c48c17e81112dce1c80f41 (patch)
tree29d5557c0131349ef50dbb62db8ab964168eb45f /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentc6670fa20d434a85e167e88aa6a4f56bfc02af2f (diff)
downloadllvm-df4b453516ebf9aa03c48c17e81112dce1c80f41.zip
llvm-df4b453516ebf9aa03c48c17e81112dce1c80f41.tar.gz
llvm-df4b453516ebf9aa03c48c17e81112dce1c80f41.tar.bz2
[lldb] Use llvm::find (NFC) (#143338)
This patch should be mostly obvious, but in one place, this patch changes: const auto &it = std::find(...) to: auto it = llvm::find(...) We do not need to bind to a temporary with const ref.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 420c84b..f18bdd5 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1728,7 +1728,7 @@ ThreadSP ProcessGDBRemote::SetThreadStopInfo(
reg_ctx_sp->InvalidateIfNeeded(true);
- auto iter = std::find(m_thread_ids.begin(), m_thread_ids.end(), tid);
+ auto iter = llvm::find(m_thread_ids, tid);
if (iter != m_thread_ids.end())
SetThreadPc(thread_sp, iter - m_thread_ids.begin());