Tokenizer: Fixed memory corruption
This commit is contained in:
parent
157498e694
commit
a0d62e041f
|
@ -4898,7 +4898,8 @@ bool Tokenizer::simplifyConditions()
|
||||||
else if (Token::simpleMatch(tok, "|| true )") ||
|
else if (Token::simpleMatch(tok, "|| true )") ||
|
||||||
Token::simpleMatch(tok, "&& false )"))
|
Token::simpleMatch(tok, "&& false )"))
|
||||||
{
|
{
|
||||||
Token::eraseTokens(tok->tokAt(2)->link(), tok->next());
|
tok = tok->next();
|
||||||
|
Token::eraseTokens(tok->next()->link(), tok);
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue