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:
parent
8e5f24eaef
commit
706b40541e
@ -168,10 +168,12 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
||||
++NumPositionalRequired;
|
||||
else if (ConsumeAfterOpt) {
|
||||
// ConsumeAfter cannot be combined with "optional" positional options
|
||||
ErrorParsing |=
|
||||
Opt->error(" error - this positional option will never be matched, "
|
||||
"because it does not Require a value, and a "
|
||||
"cl::ConsumeAfter option is active!");
|
||||
// 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 "
|
||||
"cl::ConsumeAfter option is active!");
|
||||
} else if (UnboundedFound) { // This option does not "require" a value...
|
||||
// Make sure this option is not specified after an option that eats all
|
||||
// extra arguments, or this one will never get any!
|
||||
|
@ -168,10 +168,12 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
||||
++NumPositionalRequired;
|
||||
else if (ConsumeAfterOpt) {
|
||||
// ConsumeAfter cannot be combined with "optional" positional options
|
||||
ErrorParsing |=
|
||||
Opt->error(" error - this positional option will never be matched, "
|
||||
"because it does not Require a value, and a "
|
||||
"cl::ConsumeAfter option is active!");
|
||||
// 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 "
|
||||
"cl::ConsumeAfter option is active!");
|
||||
} else if (UnboundedFound) { // This option does not "require" a value...
|
||||
// Make sure this option is not specified after an option that eats all
|
||||
// extra arguments, or this one will never get any!
|
||||
|
Loading…
x
Reference in New Issue
Block a user