File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ bool WatchpointResource::ConstituentsContains(const WatchpointSP &wp_sp) {
73
73
74
74
bool WatchpointResource::ConstituentsContains (const Watchpoint *wp) {
75
75
std::lock_guard<std::mutex> guard (m_constituents_mutex);
76
- WatchpointCollection::const_iterator match =
77
- std::find_if (m_constituents.begin (), m_constituents.end (),
78
- [&wp](const WatchpointSP &x) { return x.get () == wp; });
79
- return match != m_constituents.end ();
76
+ return llvm::any_of (m_constituents,
77
+ [&wp](const WatchpointSP &x) { return x.get () == wp; });
80
78
}
81
79
82
80
WatchpointSP WatchpointResource::GetConstituentAtIndex (size_t idx) {
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ void ABIAArch64::AugmentRegisterInfo(
177
177
lldb::eFormatHex);
178
178
179
179
auto bool_predicate = [](const auto ®_num) { return bool (reg_num); };
180
- bool saw_v_regs = std ::any_of (v_regs. begin (), v_regs. end () , bool_predicate);
181
- bool saw_z_regs = std ::any_of (z_regs. begin (), z_regs. end () , bool_predicate);
180
+ bool saw_v_regs = llvm ::any_of (v_regs, bool_predicate);
181
+ bool saw_z_regs = llvm ::any_of (z_regs, bool_predicate);
182
182
183
183
// Sn/Dn for Vn.
184
184
if (saw_v_regs) {
You can’t perform that action at this time.
0 commit comments