[clang] Use llvm::find (NFC)

This commit is contained in:
Kazu Hirata 2022-10-16 12:33:47 -07:00
parent a4635ec710
commit d72de36da3
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ getCSKYFPUFeatures(const Driver &D, const Arg *A, const ArgList &Args,
auto RemoveTargetFPUFeature =
[&Features](ArrayRef<const char *> FPUFeatures) {
for (auto FPUFeature : FPUFeatures) {
auto it = std::find(Features.begin(), Features.end(), FPUFeature);
auto it = llvm::find(Features, FPUFeature);
if (it != Features.end())
Features.erase(it);
}

View File

@ -122,7 +122,7 @@ ArgumentsAdjuster getInsertArgumentAdjuster(const CommandLineArguments &Extra,
CommandLineArguments::iterator I;
if (Pos == ArgumentInsertPosition::END) {
I = std::find(Return.begin(), Return.end(), "--");
I = llvm::find(Return, "--");
} else {
I = Return.begin();
++I; // To leave the program name in place