diff options
author | chriseth <chris@ethereum.org> | 2018-11-13 17:57:15 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-22 02:28:41 +0800 |
commit | 82055cbb615054725770dc9781b53e751c257474 (patch) | |
tree | 0ebecc7ee8b621b7807f98c1e7c1c4627ba30e81 | |
parent | 2bf5e6fa9c665a0f1893603eb8f39a2ce8b1cbe6 (diff) | |
download | dexon-solidity-82055cbb615054725770dc9781b53e751c257474.tar.gz dexon-solidity-82055cbb615054725770dc9781b53e751c257474.tar.zst dexon-solidity-82055cbb615054725770dc9781b53e751c257474.zip |
Jumps with annotations cannot be functional.
-rw-r--r-- | libevmasm/AssemblyItem.cpp | 2 |
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: |