Skip to content

Commit c70f52d

Browse files
[Option] Use llvm::is_contained (NFC)
Identified with llvm-use-ranges.
1 parent 67c8e38 commit c70f52d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Option/OptTable.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,7 @@ void OptTable::internalPrintHelp(
796796
unsigned ActiveSubCommandID = ActiveSubCommand - &SubCommands[0];
797797
// Print if the ActiveSubCommandID is registered with the CandidateInfo
798798
// Option.
799-
return std::find(SubCommandIDs.begin(), SubCommandIDs.end(),
800-
ActiveSubCommandID) != SubCommandIDs.end();
799+
return llvm::is_contained(SubCommandIDs, ActiveSubCommandID);
801800
};
802801

803802
for (unsigned Id = 1, e = getNumOptions() + 1; Id != e; ++Id) {

0 commit comments

Comments
 (0)