mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-19 17:47:38 +00:00
Fix lli with no arguments
llvm-svn: 3226
This commit is contained in:
parent
c840f0ec2a
commit
86b1459fdb
@ -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++]);
|
||||
|
||||
|
@ -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++]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user