[lld] 9ce8dde - [lld] Use std::none_of (NFC) (#143318)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 8 16:18:27 PDT 2025
Author: Kazu Hirata
Date: 2025-06-08T16:18:23-07:00
New Revision: 9ce8dde54cebe41fcb829b91cb2680c6ef4db0e3
URL: https://github.com/llvm/llvm-project/commit/9ce8dde54cebe41fcb829b91cb2680c6ef4db0e3
DIFF: https://github.com/llvm/llvm-project/commit/9ce8dde54cebe41fcb829b91cb2680c6ef4db0e3.diff
LOG: [lld] Use std::none_of (NFC) (#143318)
Added:
Modified:
lld/ELF/Writer.cpp
Removed:
################################################################################
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