Update unit test API usage (NFC)
diff --git a/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp b/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
index 42549e8..87c30de 100644
--- a/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
+++ b/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
@@ -30,10 +30,7 @@
ASSERT_TRUE(platform_sp);
int num_arches = 0;
- while (true) {
- ArchSpec arch;
- if (!platform_sp->GetSupportedArchitectureAtIndex(num_arches, arch))
- break;
+ for (auto arch : platform_sp->GetSupportedArchitectures()) {
EXPECT_EQ(arch.GetTriple().getEnvironment(), llvm::Triple::Simulator);
num_arches++;
}