aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-02 21:51:29 +0000
committerChris Lattner <sabre@nondot.org>2002-08-02 21:51:29 +0000
commitb490c20b3891717f95804517d47d269bbcf3dc03 (patch)
tree9ba96fb53d672cb2dc8c441a55b7649e78b61e56 /lib/Support
parent8fd217cb290ae22546c57af245881094312dd9de (diff)
downloadexternal_llvm-b490c20b3891717f95804517d47d269bbcf3dc03.zip
external_llvm-b490c20b3891717f95804517d47d269bbcf3dc03.tar.gz
external_llvm-b490c20b3891717f95804517d47d269bbcf3dc03.tar.bz2
Fix lli with no arguments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 9890ee2..39bff48 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -375,7 +375,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
// positional option and keep the rest for the consume after. The above
// loop would have assigned no values to positional options in this case.
//
- if (PositionalOpts.size() == 2 && ValNo == 0)
+ if (PositionalOpts.size() == 2 && ValNo == 0 && !PositionalVals.empty())
ErrorParsing |= ProvidePositionalOption(PositionalOpts[1],
PositionalVals[ValNo++]);