Fix bug that was causing problems for lli
authorChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 16:29:43 +0000 (16:29 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 16:29:43 +0000 (16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3176 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CommandLine.cpp
support/lib/Support/CommandLine.cpp

index c00c42bcb99165c687d20aed763d12f00a7c7df1..9890ee2414fd5c1a6809b20747d23484f9b9759f 100644 (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]);
index c00c42bcb99165c687d20aed763d12f00a7c7df1..9890ee2414fd5c1a6809b20747d23484f9b9759f 100644 (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]);