aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Assembly.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-01-23 23:26:19 +0800
committerGitHub <noreply@github.com>2017-01-23 23:26:19 +0800
commitc5a501addd2c339621af76db86bcf87c7111fc8d (patch)
tree9074bf3487eb97271f7ae80887e55da5f17852fc /libevmasm/Assembly.cpp
parent9c278448c8f61f752393b7950df3b47d3d5d0437 (diff)
parent0cb95ac35e4ae2ce1b9f929c00a2aed282bd4a70 (diff)
downloaddexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar.gz
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar.bz2
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar.lz
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar.xz
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.tar.zst
dexon-solidity-c5a501addd2c339621af76db86bcf87c7111fc8d.zip
Merge pull request #1599 from ethereum/fixErrorTagLLL
Fix error tag usage in lll.
Diffstat (limited to 'libevmasm/Assembly.cpp')
-rw-r--r--libevmasm/Assembly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index 845abfd4..0247593b 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -40,7 +40,7 @@ void Assembly::append(Assembly const& _a)
auto newDeposit = m_deposit + _a.deposit();
for (AssemblyItem i: _a.m_items)
{
- if (i.type() == Tag || i.type() == PushTag)
+ if (i.type() == Tag || (i.type() == PushTag && i != errorTag()))
i.setData(i.data() + m_usedTags);
else if (i.type() == PushSub || i.type() == PushSubSize)
i.setData(i.data() + m_subs.size());