mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
* Fixed spelling of `invertible'
* Simplified if statement git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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];
|
||||
|
Reference in New Issue
Block a user