summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter')
-rw-r--r--lldb/source/Interpreter/Options.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp
index 80e88829c00..814998ec68f 100644
--- a/lldb/source/Interpreter/Options.cpp
+++ b/lldb/source/Interpreter/Options.cpp
@@ -1362,12 +1362,6 @@ llvm::Expected<Args> Options::Parse(const Args &args,
int long_options_index = -1;
val = OptionParser::Parse(argv.size(), &*argv.begin(), sstr.GetString(),
long_options, &long_options_index);
-
- if ((size_t)OptionParser::GetOptionIndex() > argv.size()) {
- error.SetErrorStringWithFormat("option requires an argument");
- break;
- }
-
if (val == -1)
break;
OpenPOWER on IntegriCloud