invalid command-line options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47523
91177308-0d34-0410-b5e6-
96231b3b80d8
// Remember information about positional options.
if (O->getFormattingFlag() == cl::Positional)
PositionalOpts.push_back(O);
- else if (O->getMiscFlags() && cl::Sink) // Remember sink options
+ else if (O->getMiscFlags() & cl::Sink) // Remember sink options
SinkOpts.push_back(O);
else if (O->getNumOccurrencesFlag() == cl::ConsumeAfter) {
if (CAOpt)
--- /dev/null
+; RUN: llvm-as < /dev/null | not opt --foo > /dev/null
+
+; there is no --foo