Fix bug that was causing problems for lli

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-31 16:29:43 +00:00
parent 01c7f6d1c7
commit d16714b5ed
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
// All of the positional arguments have been fulfulled, give the rest to
// the consume after option... if it's specified...
//
if (PositionalVals.size() == NumPositionalRequired &&
if (PositionalVals.size() >= NumPositionalRequired &&
ConsumeAfterOpt != 0) {
for (++i; i < argc; ++i)
PositionalVals.push_back(argv[i]);

View File

@ -230,7 +230,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
// All of the positional arguments have been fulfulled, give the rest to
// the consume after option... if it's specified...
//
if (PositionalVals.size() == NumPositionalRequired &&
if (PositionalVals.size() >= NumPositionalRequired &&
ConsumeAfterOpt != 0) {
for (++i; i < argc; ++i)
PositionalVals.push_back(argv[i]);