aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Target/TargetList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Target/TargetList.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Target/TargetList.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/llvm-project/lldb/source/Target/TargetList.cpp b/contrib/llvm-project/lldb/source/Target/TargetList.cpp
index 214e98ee91ed..829036976a21 100644
--- a/contrib/llvm-project/lldb/source/Target/TargetList.cpp
+++ b/contrib/llvm-project/lldb/source/Target/TargetList.cpp
@@ -509,8 +509,7 @@ uint32_t TargetList::GetIndexOfTarget(lldb::TargetSP target_sp) const {
}
void TargetList::AddTargetInternal(TargetSP target_sp, bool do_select) {
- lldbassert(std::find(m_target_list.begin(), m_target_list.end(), target_sp) ==
- m_target_list.end() &&
+ lldbassert(!llvm::is_contained(m_target_list, target_sp) &&
"target already exists it the list");
m_target_list.push_back(std::move(target_sp));
if (do_select)