Merge pull request #9738 from ethereum/arrayCopyingSol2Yul

[Sol->Yul] Implementing copying of arrays to storage
This commit is contained in:
chriseth
2020-10-14 12:22:09 +02:00
committed by GitHub
45 changed files with 464 additions and 44 deletions
@@ -387,7 +387,11 @@ bool IRGeneratorForStatements::visit(Assignment const& _assignment)
writeToLValue(*m_currentLValue, value);
if (m_currentLValue->type.category() != Type::Category::Struct && *_assignment.annotation().type != *TypeProvider::emptyTuple())
if (
m_currentLValue->type.category() != Type::Category::Struct &&
m_currentLValue->type.category() != Type::Category::Array &&
*_assignment.annotation().type != *TypeProvider::emptyTuple()
)
define(_assignment, value);
m_currentLValue.reset();