ExprEngine: Create array value in struct
This commit is contained in:
parent
ff7dba91e1
commit
398cfc1f5a
|
@ -1053,6 +1053,8 @@ static ExprEngine::ValuePtr createVariableValue(const Variable &var, Data &data)
|
||||||
auto range = getValueRangeFromValueType(data.getNewSymbolName(), &vt, *data.settings);
|
auto range = getValueRangeFromValueType(data.getNewSymbolName(), &vt, *data.settings);
|
||||||
return std::make_shared<ExprEngine::PointerValue>(data.getNewSymbolName(), range, true, true);
|
return std::make_shared<ExprEngine::PointerValue>(data.getNewSymbolName(), range, true, true);
|
||||||
}
|
}
|
||||||
|
if (var.isArray())
|
||||||
|
return std::make_shared<ExprEngine::ArrayValue>(data.getNewSymbolName(), &var);
|
||||||
if (valueType->isIntegral())
|
if (valueType->isIntegral())
|
||||||
return getValueRangeFromValueType(data.getNewSymbolName(), valueType, *data.settings);
|
return getValueRangeFromValueType(data.getNewSymbolName(), valueType, *data.settings);
|
||||||
if (valueType->type == ValueType::Type::RECORD)
|
if (valueType->type == ValueType::Type::RECORD)
|
||||||
|
|
Loading…
Reference in New Issue