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: _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits