summaryrefslogtreecommitdiff
path: root/lld/MachO
diff options
context:
space:
mode:
authorJez Ng <jezng@fb.com>2023-04-05 01:52:14 -0400
committerJez Ng <jezng@fb.com>2023-04-05 07:50:28 -0400
commit46f7a2ad1c3c3696f7321aa7070a1481909db15f (patch)
treeb76b55bd61217ac72150e74760356c2037d43283 /lld/MachO
parentc4d9df9f78f3109f6c3c7bafa6fc91162e8771b4 (diff)
downloadllvm-46f7a2ad1c3c3696f7321aa7070a1481909db15f.tar.gz
[lld-macho][nfc] std::find_if -> llvm::find_if
Diffstat (limited to 'lld/MachO')
-rw-r--r--lld/MachO/ICF.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/MachO/ICF.cpp b/lld/MachO/ICF.cpp
index d5f3c19c6278..76dbd021142f 100644
--- a/lld/MachO/ICF.cpp
+++ b/lld/MachO/ICF.cpp
@@ -213,10 +213,8 @@ bool ICF::equalsVariable(const ConcatInputSection *ia,
// symbols at offset zero within the section (which is typically the case with
// .subsections_via_symbols.)
auto hasUnwind = [](Defined *d) { return d->unwindEntry != nullptr; };
- const auto *itA =
- std::find_if(ia->symbols.begin(), ia->symbols.end(), hasUnwind);
- const auto *itB =
- std::find_if(ib->symbols.begin(), ib->symbols.end(), hasUnwind);
+ const auto *itA = llvm::find_if(ia->symbols, hasUnwind);
+ const auto *itB = llvm::find_if(ib->symbols, hasUnwind);
if (itA == ia->symbols.end())
return itB == ib->symbols.end();
if (itB == ib->symbols.end())