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:
parent
bc7d9c8c8c
commit
41179ce945
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user