mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
[lldb] Use llvm::is_contained (NFC)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user