diff --git a/llvm/lib/Option/OptTable.cpp b/llvm/lib/Option/OptTable.cpp index 20398b5f582f4..065036cedc2ae 100644 --- a/llvm/lib/Option/OptTable.cpp +++ b/llvm/lib/Option/OptTable.cpp @@ -796,8 +796,7 @@ void OptTable::internalPrintHelp( unsigned ActiveSubCommandID = ActiveSubCommand - &SubCommands[0]; // Print if the ActiveSubCommandID is registered with the CandidateInfo // Option. - return std::find(SubCommandIDs.begin(), SubCommandIDs.end(), - ActiveSubCommandID) != SubCommandIDs.end(); + return llvm::is_contained(SubCommandIDs, ActiveSubCommandID); }; for (unsigned Id = 1, e = getNumOptions() + 1; Id != e; ++Id) {