1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +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(); H = MachO->MachOObjectFile::getHeader();
T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype); T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype);
} }
if (none_of(ArchFlags, [&](const std::string &Name) { if (!is_contained(ArchFlags, T.getArchName())) {
return Name == T.getArchName();
})) {
error("no architecture specified", Filename); error("no architecture specified", Filename);
return false; return false;
} }