diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-07 04:21:27 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-02-11 06:40:12 +0800 |
commit | 148f9233516ff5ad94d81aba9bc9c0440d3afc7b (patch) | |
tree | ea5c67aba40a944e9236be845cf3bd29e55b669c /libevmasm/PeepholeOptimiser.cpp | |
parent | 14ded4963d2b42443c6ddce8ad7550393ab58983 (diff) | |
download | dexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.tar.gz dexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.tar.zst dexon-solidity-148f9233516ff5ad94d81aba9bc9c0440d3afc7b.zip |
Add REVERT to libevmasm
Diffstat (limited to 'libevmasm/PeepholeOptimiser.cpp')
-rw-r--r-- | libevmasm/PeepholeOptimiser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libevmasm/PeepholeOptimiser.cpp b/libevmasm/PeepholeOptimiser.cpp index 9a8341ab..6c92d76b 100644 --- a/libevmasm/PeepholeOptimiser.cpp +++ b/libevmasm/PeepholeOptimiser.cpp @@ -200,7 +200,8 @@ struct UnreachableCode it[0] != Instruction::RETURN && it[0] != Instruction::STOP && it[0] != Instruction::INVALID && - it[0] != Instruction::SELFDESTRUCT + it[0] != Instruction::SELFDESTRUCT && + it[0] != Instruction::REVERT ) return false; |