[lld] 46f7a2a - [lld-macho][nfc] std::find_if -> llvm::find_if

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 04:50:40 PDT 2023


Author: Jez Ng
Date: 2023-04-05T07:50:28-04:00
New Revision: 46f7a2ad1c3c3696f7321aa7070a1481909db15f

URL: https://github.com/llvm/llvm-project/commit/46f7a2ad1c3c3696f7321aa7070a1481909db15f
DIFF: https://github.com/llvm/llvm-project/commit/46f7a2ad1c3c3696f7321aa7070a1481909db15f.diff

LOG: [lld-macho][nfc] std::find_if -> llvm::find_if

Added: 
    

Modified: 
    lld/MachO/ICF.cpp

Removed: 
    


################################################################################
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())


        


More information about the llvm-commits mailing list