forked from OSchip/llvm-project
Driver: Drop code for checking bounds in SeparateArg::render, this
situation should never occur now that arguments are parsed correctly. llvm-svn: 67493
This commit is contained in:
parent
b28b407121
commit
a0c89be9cc
|
@ -162,9 +162,8 @@ void SeparateArg::render(const ArgList &Args, ArgStringList &Output) const {
|
|||
Output.push_back(Args.MakeArgString(Joined.c_str()));
|
||||
} else {
|
||||
Output.push_back(Args.getArgString(getIndex()));
|
||||
unsigned limit = std::min(Args.size(), getIndex() + 1 + NumValues);
|
||||
for (unsigned i = getIndex() + 1; i < limit; ++i)
|
||||
Output.push_back(Args.getArgString(i));
|
||||
for (unsigned i = 0; i < NumValues; ++i)
|
||||
Output.push_back(Args.getArgString(getIndex() + 1 + i));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue