mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
IRGeneratorForStatements: Fix undefined order of functions when generating code for index expressions
This commit is contained in:
@@ -2295,8 +2295,9 @@ void IRGeneratorForStatements::endVisit(IndexAccess const& _indexAccess)
|
||||
}
|
||||
case DataLocation::Memory:
|
||||
{
|
||||
string indexAccessFunction = m_utils.memoryArrayIndexAccessFunction(arrayType);
|
||||
string const memAddress =
|
||||
m_utils.memoryArrayIndexAccessFunction(arrayType) +
|
||||
indexAccessFunction +
|
||||
"(" +
|
||||
IRVariable(_indexAccess.baseExpression()).part("mpos").name() +
|
||||
", " +
|
||||
|
||||
Reference in New Issue
Block a user