1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Minor bugfix, prevents error in LLI

llvm-svn: 2989
This commit is contained in:
Chris Lattner 2002-07-22 02:21:57 +00:00
parent 8e5f24eaef
commit 706b40541e
2 changed files with 12 additions and 8 deletions

View File

@ -168,6 +168,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
++NumPositionalRequired;
else if (ConsumeAfterOpt) {
// ConsumeAfter cannot be combined with "optional" positional options
// unless there is only one positional argument...
if (PositionalOpts.size() > 2)
ErrorParsing |=
Opt->error(" error - this positional option will never be matched, "
"because it does not Require a value, and a "

View File

@ -168,6 +168,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
++NumPositionalRequired;
else if (ConsumeAfterOpt) {
// ConsumeAfter cannot be combined with "optional" positional options
// unless there is only one positional argument...
if (PositionalOpts.size() > 2)
ErrorParsing |=
Opt->error(" error - this positional option will never be matched, "
"because it does not Require a value, and a "