ExprEngine: Try to handle function with unknown type better

This commit is contained in:
Daniel Marjamäki 2020-04-30 22:10:30 +02:00
parent b27fabaacb
commit 999ef06156
1 changed files with 0 additions and 3 deletions

View File

@ -1482,9 +1482,6 @@ static ExprEngine::ValuePtr executeFunctionCall(const Token *tok, Data &data)
} }
} }
if (!tok->valueType() && tok->astParent())
throw VerifyException(tok, "Expression '" + tok->expressionString() + "' has unknown type!");
if (tok->astOperand1()->function()) { if (tok->astOperand1()->function()) {
const std::string &functionName = tok->astOperand1()->function()->fullName(); const std::string &functionName = tok->astOperand1()->function()->fullName();
const auto contractIt = data.settings->functionContracts.find(functionName); const auto contractIt = data.settings->functionContracts.find(functionName);