Revert "Fix a crash in option parsing."

This fails on the bots around 1/10 of the time.

llvm-svn: 363999
This commit is contained in:
Davide Italiano 2019-06-20 23:44:37 +00:00
parent 1c0bd6dd2c
commit 0cdae2681a
3 changed files with 0 additions and 9 deletions

View File

@ -1 +0,0 @@
process attach --pid

View File

@ -1,2 +0,0 @@
# RUN: %lldb -x -b -S %S/Inputs/process_attach_pid.in 2>&1 | FileCheck %s
# CHECK: requires an argument

View File

@ -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;