summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 09038d3a5f..b53706f168 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -335,11 +335,8 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
" does not require a value!");
}
UnboundedFound |= EatsUnboundedNumberOfValues(Opt);
-
- if (Opt->getNumOccurrencesFlag() == cl::ZeroOrMore
- || Opt->getNumOccurrencesFlag() == cl::OneOrMore)
- HasUnlimitedPositionals = true;
}
+ HasUnlimitedPositionals = UnboundedFound || ConsumeAfterOpt;
}
// PositionalVals - A vector of "positional" arguments we accumulate into