From: Chris Lattner Date: Wed, 31 Jul 2002 16:29:43 +0000 (+0000) Subject: Fix bug that was causing problems for lli X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d16714b5ed076d0c1d14543098c1e9b90fd92a38;p=oota-llvm.git 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 --- diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index c00c42bcb99..9890ee2414f 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -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]); diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp index c00c42bcb99..9890ee2414f 100644 --- a/support/lib/Support/CommandLine.cpp +++ b/support/lib/Support/CommandLine.cpp @@ -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]);