From 68ad015714e7409cdaa66dfd4b9ef91cd04be774 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 18 Dec 2018 12:39:24 +0100 Subject: Make swappable instructions static. --- libevmasm/PeepholeOptimiser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libevmasm') 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 { static bool applySimple(AssemblyItem const& _swap, AssemblyItem const& _op, std::back_insert_iterator _out) { - map swappableOps{ + static map const swappableOps{ { Instruction::LT, Instruction::GT }, { Instruction::GT, Instruction::LT }, { Instruction::SLT, Instruction::SGT }, -- cgit