summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Args.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-09-12 04:48:45 +0000
committerCaroline Tice <ctice@apple.com>2010-09-12 04:48:45 +0000
commit5172e6c35aeb85dfcf3fcb2d51b4a2f87ec69f1a (patch)
tree390630c98093dc71e056ca145d99bad8c9579c34 /lldb/source/Interpreter/Args.cpp
parent2bbc0266e0749a9e3ab58cb148830b03ca10debf (diff)
downloadbcm5719-llvm-5172e6c35aeb85dfcf3fcb2d51b4a2f87ec69f1a.tar.gz
bcm5719-llvm-5172e6c35aeb85dfcf3fcb2d51b4a2f87ec69f1a.zip
Add missing result.SetStatus, to allow aliases to be created with
missing arguments for some of the command options. llvm-svn: 113714
Diffstat (limited to 'lldb/source/Interpreter/Args.cpp')
-rw-r--r--lldb/source/Interpreter/Args.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index 059a69a36f7..62a4e1c999a 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -893,6 +893,7 @@ Args::ParseAliasOptions
{
case no_argument:
option_arg_vector->push_back (OptionArgPair (std::string (option_str.GetData()), "<no-argument>"));
+ result.SetStatus (eReturnStatusSuccessFinishNoResult);
break;
case required_argument:
if (optarg != NULL)
OpenPOWER on IntegriCloud