Skip to content

Commit

Permalink
Merge pull request #15726 from ericlehong/fix
Browse files Browse the repository at this point in the history
Fix typo in libevmasm/Assembly.cpp
  • Loading branch information
cameel authored Jan 17, 2025
2 parents 53fc9f4 + 78e2678 commit 85ee2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libevmasm/Assembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1667,14 +1667,14 @@ LinkerObject const& Assembly::assembleEOF() const

for (auto i: referencedSubIds)
{
size_t const subAssemblyPostionInParentObject = ret.bytecode.size();
size_t const subAssemblyPositionInParentObject = ret.bytecode.size();
auto const& subAssemblyLinkerObject = m_subs[i]->assemble();
// Append subassembly bytecode to the parent assembly result bytecode
ret.bytecode += subAssemblyLinkerObject.bytecode;
// Add subassembly link references to parent linker object.
// Offset accordingly to subassembly position in parent object bytecode
for (auto const& [subAssemblyLinkRefPosition, linkRef]: subAssemblyLinkerObject.linkReferences)
ret.linkReferences[subAssemblyPostionInParentObject + subAssemblyLinkRefPosition] = linkRef;
ret.linkReferences[subAssemblyPositionInParentObject + subAssemblyLinkRefPosition] = linkRef;
}

// TODO: Fill functionDebugData for EOF. It probably should be handled for new code section in the loop above.
Expand Down

0 comments on commit 85ee2bd

Please sign in to comment.