summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-05-11 18:37:58 +0000
committerGreg Clayton <gclayton@apple.com>2012-05-11 18:37:58 +0000
commit4ae4160974c7dbc082d9c81d0ddbd30996531318 (patch)
tree55a4df0b52d4d9685d63c3675597907c9f86c56c /lldb/source/Interpreter
parente2cfd3ce954a5a5827249ac64eed0acc8aabfd75 (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud