aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/CommandLine.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 4a7c8c8..e45ab21 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -537,7 +537,7 @@ struct basic_parser : public basic_parser_impl {
//
template<>
class parser<bool> : public basic_parser<bool> {
- bool IsInvertable; // Should we synthezise a -xno- style option?
+ bool IsInvertible; // Should we synthesize a -xno- style option?
const char *ArgStr;
public:
void getExtraOptionNames(std::vector<const char*> &OptionNames);
@@ -547,10 +547,7 @@ public:
template <class Opt>
void initialize(Opt &O) {
- if (O.getMiscFlags() & llvm::cl::AllowInverse)
- IsInvertable = true;
- else
- IsInvertable = false;
+ IsInvertible = (O.getMiscFlags() & llvm::cl::AllowInverse);
ArgStr = O.ArgStr;
}