1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[llvm-cov] Use is_contained (NFC)

This commit is contained in:
Kazu Hirata 2020-12-27 09:57:25 -08:00
parent bc7d9c8c8c
commit 41179ce945

View File

@ -542,9 +542,7 @@ static bool checkMachOAndArchFlags(ObjectFile *O, StringRef Filename) {
H = MachO->MachOObjectFile::getHeader();
T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype);
}
if (none_of(ArchFlags, [&](const std::string &Name) {
return Name == T.getArchName();
})) {
if (!is_contained(ArchFlags, T.getArchName())) {
error("no architecture specified", Filename);
return false;
}