[Lldb-commits] [lldb] 66a7971 - [lldb] Use llvm::is_contained (NFC)
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Sun Oct 22 21:18:35 PDT 2023
Author: Kazu Hirata
Date: 2023-10-22T21:18:25-07:00
New Revision: 66a797102de4e001054c94d7c0a3f71ace0a2c1f
URL: https://github.com/llvm/llvm-project/commit/66a797102de4e001054c94d7c0a3f71ace0a2c1f
DIFF: https://github.com/llvm/llvm-project/commit/66a797102de4e001054c94d7c0a3f71ace0a2c1f.diff
LOG: [lldb] Use llvm::is_contained (NFC)
Added:
Modified:
lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
index 1348eca05e337f3..dc59d904c74d820 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
@@ -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:
More information about the lldb-commits
mailing list