From ae2b59d18a181bfbcb563b91866611d2e5e55b41 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 26 Jan 2017 15:59:29 +0100 Subject: Fix optimizer with regards to INVALID instruction. --- libevmasm/PeepholeOptimiser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libevmasm/PeepholeOptimiser.cpp') diff --git a/libevmasm/PeepholeOptimiser.cpp b/libevmasm/PeepholeOptimiser.cpp index 923ffa67..528ce1c4 100644 --- a/libevmasm/PeepholeOptimiser.cpp +++ b/libevmasm/PeepholeOptimiser.cpp @@ -199,6 +199,7 @@ struct UnreachableCode it[0] != Instruction::JUMP && it[0] != Instruction::RETURN && it[0] != Instruction::STOP && + it[0] != Instruction::INVALID && it[0] != Instruction::SUICIDE ) return false; -- cgit v1.2.3