From 61e015fe7426ca97c3c7afb583f04f5f93050370 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 23 Feb 2008 01:55:25 +0000 Subject: 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 --- lib/Support/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Support/CommandLine.cpp') diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 4fe1aa1112..486875210f 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -127,7 +127,7 @@ static void GetOptionInfo(std::vector &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) -- cgit v1.2.3-18-g5258