diff options
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupPlatform.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionGroupPlatform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupPlatform.cpp b/lldb/source/Interpreter/OptionGroupPlatform.cpp index 8602ca87b1f..e6d4e7f5ad5 100644 --- a/lldb/source/Interpreter/OptionGroupPlatform.cpp +++ b/lldb/source/Interpreter/OptionGroupPlatform.cpp @@ -34,7 +34,7 @@ OptionGroupPlatform::CreatePlatformWithOptions (CommandInterpreter &interpreter, platform_sp = Platform::Create (m_platform_name.c_str(), error); if (platform_sp) { - if (!platform_sp->IsCompatibleArchitecture(arch, &platform_arch)) + if (platform_arch.IsValid() && !platform_sp->IsCompatibleArchitecture(arch, &platform_arch)) { error.SetErrorStringWithFormat("platform '%s' doesn't support '%s'", platform_sp->GetName(), arch.GetTriple().getTriple().c_str()); platform_sp.reset(); |