diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-04-01 00:15:46 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-04-01 00:15:46 +0000 |
commit | d485e885f04eaaafc9c0ce2555c6bd853b7c18a3 (patch) | |
tree | 42493b07b98b7cabf1cc939856a61b3972d58c4a /lib/Support/CommandLine.cpp | |
parent | 41222823db11107834414a378525bb21493d3a1f (diff) |
* Fixed spelling of `invertible'
* Simplified if statement
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index f3f198b355..710b210ab9 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -872,13 +872,13 @@ bool parser<bool>::parse(Option &O, const char *ArgName, return O.error(": '" + Arg + "' is invalid value for boolean argument! Try 0 or 1"); } - if (IsInvertable && strncmp(ArgName+1, "no-", 3) == 0) + if (IsInvertible && strncmp(ArgName+1, "no-", 3) == 0) Value = !Value; return false; } void parser<bool>::getExtraOptionNames(std::vector<const char*> &OptionNames) { - if (!IsInvertable) + if (!IsInvertible) return; char *s = new char [strlen(ArgStr) + 3 + 1]; |