Fixed crash in clang test suite introduced in b27ba72fdd
This commit is contained in:
parent
816106560a
commit
c638180753
|
@ -3985,8 +3985,10 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst) const
|
||||||
while (Token::Match(argtok, ".|::"))
|
while (Token::Match(argtok, ".|::"))
|
||||||
argtok = argtok->astOperand2();
|
argtok = argtok->astOperand2();
|
||||||
|
|
||||||
const Variable * callarg = check->getVariableFromVarId(argtok->varId());
|
if (argtok) {
|
||||||
checkVariableCallMatch(callarg, funcarg, same, fallback1, fallback2);
|
const Variable * callarg = check->getVariableFromVarId(argtok->varId());
|
||||||
|
checkVariableCallMatch(callarg, funcarg, same, fallback1, fallback2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue