Skip to content

Commit 407df06

Browse files
[lld] Use llvm::any_of (NFC) (#141316)
1 parent 08a50bd commit 407df06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/MachO/DriverUtils.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,8 @@ DylibFile *macho::loadDylib(MemoryBufferRef mbref, DylibFile *umbrella,
277277
}
278278

279279
if (explicitlyLinked && !newFile->allowableClients.empty()) {
280-
bool allowed = std::any_of(
281-
newFile->allowableClients.begin(), newFile->allowableClients.end(),
282-
[&](StringRef allowableClient) {
280+
bool allowed =
281+
llvm::any_of(newFile->allowableClients, [&](StringRef allowableClient) {
283282
// We only do a prefix match to match LD64's behaviour.
284283
return allowableClient.starts_with(config->clientName);
285284
});

0 commit comments

Comments
 (0)