diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-08-13 13:44:25 +0200 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-08-13 14:11:28 +0200 |
commit | 8af160b0b8ca8102b9490a287244af75727872f5 (patch) | |
tree | 72746508491e84ef3ce842bc67c989ba688ec75c /lldb/source/Commands/CommandObjectThread.cpp | |
parent | a31d20e67e2bbdbf5afd72b846f681023ff3bc4c (diff) | |
download | llvm-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.cpp | 3 |
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(); |