aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-24 19:32:42 +0800
committerchriseth <c@ethdev.com>2016-12-01 23:03:59 +0800
commit1e35526eb6a7c5af074170f6291491d3cb0bd6ba (patch)
tree41c8a1688197c6b3109e7345b8ca9a520f8eecac /libevmasm
parentaa1fd6a879eaedc5c4df2951c06e9dc3eb6eaeb4 (diff)
downloaddexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.gz
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.tar.zst
dexon-solidity-1e35526eb6a7c5af074170f6291491d3cb0bd6ba.zip
Fix tests.
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/Assembly.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index fab63840..a9ca24dc 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -525,8 +525,9 @@ LinkerObject const& Assembly::assemble() const
}
}
- // Append a STOP just to be sure.
- ret.bytecode.push_back(0);
+ if (!m_subs.empty() || !m_data.empty() || !m_auxiliaryData.empty())
+ // Append a STOP just to be sure.
+ ret.bytecode.push_back(0);
for (size_t i = 0; i < m_subs.size(); ++i)
{