ExprEngine: Do not bailout if function type is not known if the result is not used anyway

This commit is contained in:
Daniel Marjamäki 2019-09-28 11:55:06 +02:00
parent b2239f04ba
commit f6c0550c41
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ static ExprEngine::ValuePtr executeFunctionCall(const Token *tok, Data &data)
}
}
if (!tok->valueType())
if (!tok->valueType() && tok->astParent())
throw std::runtime_error("Expression '" + tok->expressionString() + "' has unknown type!");
auto val = getValueRangeFromValueType(data.getNewSymbolName(), tok->valueType(), *data.settings);