mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Minor bugfix, prevents error in LLI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54e05afa3c
commit
54ec7aed89
@ -168,6 +168,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
|||||||
++NumPositionalRequired;
|
++NumPositionalRequired;
|
||||||
else if (ConsumeAfterOpt) {
|
else if (ConsumeAfterOpt) {
|
||||||
// ConsumeAfter cannot be combined with "optional" positional options
|
// ConsumeAfter cannot be combined with "optional" positional options
|
||||||
|
// unless there is only one positional argument...
|
||||||
|
if (PositionalOpts.size() > 2)
|
||||||
ErrorParsing |=
|
ErrorParsing |=
|
||||||
Opt->error(" error - this positional option will never be matched, "
|
Opt->error(" error - this positional option will never be matched, "
|
||||||
"because it does not Require a value, and a "
|
"because it does not Require a value, and a "
|
||||||
|
@ -168,6 +168,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
|||||||
++NumPositionalRequired;
|
++NumPositionalRequired;
|
||||||
else if (ConsumeAfterOpt) {
|
else if (ConsumeAfterOpt) {
|
||||||
// ConsumeAfter cannot be combined with "optional" positional options
|
// ConsumeAfter cannot be combined with "optional" positional options
|
||||||
|
// unless there is only one positional argument...
|
||||||
|
if (PositionalOpts.size() > 2)
|
||||||
ErrorParsing |=
|
ErrorParsing |=
|
||||||
Opt->error(" error - this positional option will never be matched, "
|
Opt->error(" error - this positional option will never be matched, "
|
||||||
"because it does not Require a value, and a "
|
"because it does not Require a value, and a "
|
||||||
|
Loading…
Reference in New Issue
Block a user