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:
Daniel Dunbar 2009-03-22 23:50:14 +00:00
parent b28b407121
commit a0c89be9cc
1 changed files with 2 additions and 3 deletions

View File

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