Skip to content

Commit 15c9950

Browse files
kazutakahiratarorth
authored andcommitted
[lld] Use std::none_of (NFC) (llvm#143318)
1 parent 27be33a commit 15c9950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ findOrphanPos(Ctx &ctx, SmallVectorImpl<SectionCommand *>::iterator b,
10301030
// This matches bfd's behavior and is convenient when the linker script fully
10311031
// specifies the start of the file, but doesn't care about the end (the non
10321032
// alloc sections for example).
1033-
if (std::find_if(i, e, isOutputSecWithInputSections) == e)
1033+
if (std::none_of(i, e, isOutputSecWithInputSections))
10341034
return e;
10351035

10361036
while (i != e && shouldSkip(*i))

0 commit comments

Comments
 (0)