aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-18 19:39:24 +0800
committerchriseth <chris@ethereum.org>2018-12-18 19:39:24 +0800
commit68ad015714e7409cdaa66dfd4b9ef91cd04be774 (patch)
tree70524bf48d1a6e561f9476c965710fe72819711c /libevmasm
parent4e475cdbe91e38e7b129248d4578b3a4fbf926be (diff)
downloaddexon-solidity-68ad015714e7409cdaa66dfd4b9ef91cd04be774.tar.gz
dexon-solidity-68ad015714e7409cdaa66dfd4b9ef91cd04be774.tar.zst
dexon-solidity-68ad015714e7409cdaa66dfd4b9ef91cd04be774.zip
Make swappable instructions static.
Diffstat (limited to 'libevmasm')
-rw-r--r--libevmasm/PeepholeOptimiser.cpp2
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 },