Bug hunting; Avoid bailout uninit FP, arrays
This commit is contained in:
parent
5df9cd90a6
commit
fe0081496c
|
@ -296,6 +296,10 @@ static void uninit(const Token *tok, const ExprEngine::Value &value, ExprEngine:
|
||||||
if (var && Token::Match(var->nameToken(), "%varid% ;| %varid%| =", tok->varId()))
|
if (var && Token::Match(var->nameToken(), "%varid% ;| %varid%| =", tok->varId()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Arrays are allocated on the stack
|
||||||
|
if (var && Token::Match(tok, "%var% [") && var->isArray())
|
||||||
|
return;
|
||||||
|
|
||||||
if (tok->variable() && isVariableAssigned(tok->variable(), tok))
|
if (tok->variable() && isVariableAssigned(tok->variable(), tok))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue