[lldb] Use llvm::is_contained (NFC)

This commit is contained in:
Kazu Hirata
2023-10-22 21:18:25 -07:00
parent a5dca533bd
commit 66a797102d

View File

@@ -335,8 +335,7 @@ PlatformSP PlatformAppleSimulator::CreateInstance(
bool create = force;
if (!create && arch && arch->IsValid()) {
if (std::count(supported_arch.begin(), supported_arch.end(),
arch->GetMachine())) {
if (llvm::is_contained(supported_arch, arch->GetMachine())) {
const llvm::Triple &triple = arch->GetTriple();
switch (triple.getVendor()) {
case llvm::Triple::Apple: