Bug hunting; avoid bailout false positives when constructor is called

This commit is contained in:
Daniel Marjamäki 2020-07-16 16:38:22 +02:00
parent bec78a0960
commit 0632f86449
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ static void uninit(const Token *tok, const ExprEngine::Value &value, ExprEngine:
if (!var->isLocal() || var->isStatic())
return;
}
if (var && (Token::Match(var->nameToken(), "%name% [=:]") || Token::Match(var->nameToken(), "%varid% ; %varid% =", var->declarationId())))
if (var && (Token::Match(var->nameToken(), "%name% [=:({)]") || Token::Match(var->nameToken(), "%varid% ; %varid% =", var->declarationId())))
return;
if (var && var->nameToken() == tok)
return;