aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-13 17:57:15 +0800
committerchriseth <chris@ethereum.org>2018-11-22 02:28:41 +0800
commit82055cbb615054725770dc9781b53e751c257474 (patch)
tree0ebecc7ee8b621b7807f98c1e7c1c4627ba30e81
parent2bf5e6fa9c665a0f1893603eb8f39a2ce8b1cbe6 (diff)
downloaddexon-solidity-82055cbb615054725770dc9781b53e751c257474.tar.gz
dexon-solidity-82055cbb615054725770dc9781b53e751c257474.tar.zst
dexon-solidity-82055cbb615054725770dc9781b53e751c257474.zip
Jumps with annotations cannot be functional.
-rw-r--r--libevmasm/AssemblyItem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp
index a3a4d6b6..52f246d1 100644
--- a/libevmasm/AssemblyItem.cpp
+++ b/libevmasm/AssemblyItem.cpp
@@ -117,6 +117,8 @@ int AssemblyItem::returnValues() const
bool AssemblyItem::canBeFunctional() const
{
+ if (m_jumpType != JumpType::Ordinary)
+ return false;
switch (m_type)
{
case Operation: