Skip to content

Commit 78e2678

Browse files
committed
Update libevmasm/Assembly.cpp
Signed-off-by: ericlehong <193237094+ericlehong@users.noreply.github.com>
1 parent 53fc9f4 commit 78e2678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libevmasm/Assembly.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,14 +1667,14 @@ LinkerObject const& Assembly::assembleEOF() const
16671667

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

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

0 commit comments

Comments
 (0)