diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-05-11 18:37:58 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-05-11 18:37:58 +0000 |
| commit | 4ae4160974c7dbc082d9c81d0ddbd30996531318 (patch) | |
| tree | 55a4df0b52d4d9685d63c3675597907c9f86c56c /lldb/source/Interpreter | |
| parent | e2cfd3ce954a5a5827249ac64eed0acc8aabfd75 (diff) | |
| download | bcm5719-llvm-4ae4160974c7dbc082d9c81d0ddbd30996531318.tar.gz bcm5719-llvm-4ae4160974c7dbc082d9c81d0ddbd30996531318.zip | |
Fixed an issue in the platform options where if no architecture was specified where the platform would fail to select itself with something like:
(lldb) platfrom select remote-ios
llvm-svn: 156626
Diffstat (limited to 'lldb/source/Interpreter')
| -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(); |

