aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/SemanticInformation.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-03 18:45:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-03 18:45:44 +0800
commit43719839bf02a17cea2014266abca837f88ab35e (patch)
tree91648fd012b01649f4d4b9fee228d23045a660ea /libevmasm/SemanticInformation.cpp
parent5c284589202c261c06dadfe7a598cc23752e8e48 (diff)
downloaddexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.gz
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.bz2
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.lz
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.xz
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.zst
dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.zip
Use isDup/SwapInstruction helper
Diffstat (limited to 'libevmasm/SemanticInformation.cpp')
-rw-r--r--libevmasm/SemanticInformation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/SemanticInformation.cpp b/libevmasm/SemanticInformation.cpp
index ceb3fbdd..83cfe2c6 100644
--- a/libevmasm/SemanticInformation.cpp
+++ b/libevmasm/SemanticInformation.cpp
@@ -90,14 +90,14 @@ bool SemanticInformation::isDupInstruction(AssemblyItem const& _item)
{
if (_item.type() != Operation)
return false;
- return Instruction::DUP1 <= _item.instruction() && _item.instruction() <= Instruction::DUP16;
+ return solidity::isDupInstruction(_item.instruction());
}
bool SemanticInformation::isSwapInstruction(AssemblyItem const& _item)
{
if (_item.type() != Operation)
return false;
- return Instruction::SWAP1 <= _item.instruction() && _item.instruction() <= Instruction::SWAP16;
+ return solidity::isSwapInstruction(_item.instruction());
}
bool SemanticInformation::isJumpInstruction(AssemblyItem const& _item)