diff options
author | Dan Gohman <gohman@apple.com> | 2008-02-23 01:55:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-02-23 01:55:25 +0000 |
commit | e411a2d6ef16f2d511c6d6867e35d84c508aaa15 (patch) | |
tree | 0c0374ef135afd0633746c6348863ee2d3f6f5c2 /lib/Support | |
parent | 0b2996bf9697a3ef0a2986a590b5af889dd7660d (diff) | |
download | external_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.zip external_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.tar.gz external_llvm-e411a2d6ef16f2d511c6d6867e35d84c508aaa15.tar.bz2 |
Fix a bug that caused opt and other tools to silently ignore
invalid command-line options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 4fe1aa1..4868752 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -127,7 +127,7 @@ static void GetOptionInfo(std::vector<Option*> &PositionalOpts, // 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) |