diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-12-18 22:03:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 22:03:50 +0800 |
commit | a51a8368aaa44bd1b26eb6869b107f6f3b3eec05 (patch) | |
tree | c9946a64a2392ed8beeb9d2b81b2c04fdaf13b68 | |
parent | c60ec958abea4f63eea8783d67a5054ca04d0a64 (diff) | |
parent | 68ad015714e7409cdaa66dfd4b9ef91cd04be774 (diff) | |
download | dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar.gz dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar.bz2 dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar.lz dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar.xz dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.tar.zst dexon-solidity-a51a8368aaa44bd1b26eb6869b107f6f3b3eec05.zip |
Merge pull request #5676 from ethereum/someOpts
Make swappable instructions static.
-rw-r--r-- | libevmasm/PeepholeOptimiser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/PeepholeOptimiser.cpp b/libevmasm/PeepholeOptimiser.cpp index 6d8e1df6..f3ae8cbf 100644 --- a/libevmasm/PeepholeOptimiser.cpp +++ b/libevmasm/PeepholeOptimiser.cpp @@ -177,7 +177,7 @@ struct SwapComparison: SimplePeepholeOptimizerMethod<SwapComparison, 2> { static bool applySimple(AssemblyItem const& _swap, AssemblyItem const& _op, std::back_insert_iterator<AssemblyItems> _out) { - map<Instruction, Instruction> swappableOps{ + static map<Instruction, Instruction> const swappableOps{ { Instruction::LT, Instruction::GT }, { Instruction::GT, Instruction::LT }, { Instruction::SLT, Instruction::SGT }, |