Try to fix issue 9341: daca crash: isContainerSizeChangedByFunction (#2168)
This commit is contained in:
parent
da29a1f56b
commit
ddb1f1b5ce
|
@ -5322,6 +5322,7 @@ static bool isContainerSizeChangedByFunction(const Token *tok, int depth = 20)
|
|||
const Function * fun = ftok->function();
|
||||
if (fun) {
|
||||
const Variable *arg = fun->getArgumentVar(narg);
|
||||
if (arg) {
|
||||
if (!arg->isReference() && !addressOf)
|
||||
return false;
|
||||
if (arg->isConst())
|
||||
|
@ -5335,6 +5336,7 @@ static bool isContainerSizeChangedByFunction(const Token *tok, int depth = 20)
|
|||
return isContainerSizeChanged(arg->declarationId(), scope->bodyStart, scope->bodyEnd, depth - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool inconclusive = false;
|
||||
const bool isChanged = isVariableChangedByFunctionCall(tok, 0, nullptr, &inconclusive);
|
||||
|
|
Loading…
Reference in New Issue