From 407df069ec1143bcfc6b6d34502d6e60ebcafa4f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 23 May 2025 23:59:45 -0700 Subject: [PATCH] [lld] Use llvm::any_of (NFC) (#141316) --- lld/MachO/DriverUtils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lld/MachO/DriverUtils.cpp b/lld/MachO/DriverUtils.cpp index cf874018fa34..f519ee617b8f 100644 --- a/lld/MachO/DriverUtils.cpp +++ b/lld/MachO/DriverUtils.cpp @@ -277,9 +277,8 @@ DylibFile *macho::loadDylib(MemoryBufferRef mbref, DylibFile *umbrella, } if (explicitlyLinked && !newFile->allowableClients.empty()) { - bool allowed = std::any_of( - newFile->allowableClients.begin(), newFile->allowableClients.end(), - [&](StringRef allowableClient) { + bool allowed = + llvm::any_of(newFile->allowableClients, [&](StringRef allowableClient) { // We only do a prefix match to match LD64's behaviour. return allowableClient.starts_with(config->clientName); });