[lld] [lld] Use std::none_of (NFC) (PR #143318)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 8 10:12:15 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/143318
None
>From d40a9667180b6df2c8c25ba7671b33c3c10337b3 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 8 Jun 2025 09:46:54 -0700
Subject: [PATCH] [lld] Use std::none_of (NFC)
---
lld/ELF/Writer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index ec1f87a47479a..10dc688160d1e 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1030,7 +1030,7 @@ findOrphanPos(Ctx &ctx, SmallVectorImpl<SectionCommand *>::iterator b,
// This matches bfd's behavior and is convenient when the linker script fully
// specifies the start of the file, but doesn't care about the end (the non
// alloc sections for example).
- if (std::find_if(i, e, isOutputSecWithInputSections) == e)
+ if (std::none_of(i, e, isOutputSecWithInputSections))
return e;
while (i != e && shouldSkip(*i))
More information about the llvm-commits
mailing list