aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-08-13 13:44:25 +0200
committerRaphael Isemann <teemperor@gmail.com>2020-08-13 14:11:28 +0200
commit8af160b0b8ca8102b9490a287244af75727872f5 (patch)
tree72746508491e84ef3ce842bc67c989ba688ec75c /lldb/source/Commands/CommandObjectThread.cpp
parenta31d20e67e2bbdbf5afd72b846f681023ff3bc4c (diff)
downloadllvm-8af160b0b8ca8102b9490a287244af75727872f5.zip
llvm-8af160b0b8ca8102b9490a287244af75727872f5.tar.gz
llvm-8af160b0b8ca8102b9490a287244af75727872f5.tar.bz2
[lldb][NFC] Use llvm::is_contained instead of std::find in a few places
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index f039226..26e150f 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -1982,8 +1982,7 @@ public:
protected:
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override {
// If we have already handled this from a -t option, skip it here.
- if (std::find(m_options.m_tids.begin(), m_options.m_tids.end(), tid) !=
- m_options.m_tids.end())
+ if (llvm::is_contained(m_options.m_tids, tid))
return true;
Process *process = m_exe_ctx.GetProcessPtr();