mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Implementing member access to arrays in calldata structs.
This commit is contained in:
@@ -1810,6 +1810,11 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess)
|
||||
", " <<
|
||||
offset <<
|
||||
")\n";
|
||||
else if (
|
||||
dynamic_cast<ArrayType const*>(_memberAccess.annotation().type) ||
|
||||
dynamic_cast<StructType const*>(_memberAccess.annotation().type)
|
||||
)
|
||||
define(_memberAccess) << offset << "\n";
|
||||
else
|
||||
define(_memberAccess) <<
|
||||
m_utils.readFromCalldata(*_memberAccess.annotation().type) <<
|
||||
|
||||
Reference in New Issue
Block a user