diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-03 18:45:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-03 18:45:44 +0800 |
commit | 43719839bf02a17cea2014266abca837f88ab35e (patch) | |
tree | 91648fd012b01649f4d4b9fee228d23045a660ea /libevmasm/SemanticInformation.cpp | |
parent | 5c284589202c261c06dadfe7a598cc23752e8e48 (diff) | |
download | dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.gz dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.tar.zst dexon-solidity-43719839bf02a17cea2014266abca837f88ab35e.zip |
Use isDup/SwapInstruction helper
Diffstat (limited to 'libevmasm/SemanticInformation.cpp')
-rw-r--r-- | libevmasm/SemanticInformation.cpp | 4 |
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) |