aboutsummaryrefslogtreecommitdiffstats
path: root/support/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-31 16:29:43 +0000
committerChris Lattner <sabre@nondot.org>2002-07-31 16:29:43 +0000
commitd16714b5ed076d0c1d14543098c1e9b90fd92a38 (patch)
treea07ea2c039814c5b73258b7a569f08400339044e /support/lib/Support
parent01c7f6d1c75f83f0b9229154450b0de95a96ec8b (diff)
downloadexternal_llvm-d16714b5ed076d0c1d14543098c1e9b90fd92a38.zip
external_llvm-d16714b5ed076d0c1d14543098c1e9b90fd92a38.tar.gz
external_llvm-d16714b5ed076d0c1d14543098c1e9b90fd92a38.tar.bz2
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
Diffstat (limited to 'support/lib/Support')
-rw-r--r--support/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp
index c00c42b..9890ee2 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]);