ExprEngine: Do not bailout if function type is not known if the result is not used anyway
This commit is contained in:
parent
b2239f04ba
commit
f6c0550c41
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue