From 1cc5a03e42391d326eaceb8b85de98d5b0db1741 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 30 Oct 2019 17:29:42 +0100 Subject: [PATCH] Fix bug in unsimplifier. --- libyul/optimiser/ConditionalUnsimplifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyul/optimiser/ConditionalUnsimplifier.cpp b/libyul/optimiser/ConditionalUnsimplifier.cpp index d1d167aa1..224634017 100644 --- a/libyul/optimiser/ConditionalUnsimplifier.cpp +++ b/libyul/optimiser/ConditionalUnsimplifier.cpp @@ -61,11 +61,11 @@ void ConditionalUnsimplifier::operator()(Switch& _switch) void ConditionalUnsimplifier::operator()(Block& _block) { + walkVector(_block.statements); iterateReplacingWindow<2>( _block.statements, [&](Statement& _stmt1, Statement& _stmt2) -> std::optional> { - visit(_stmt1); if (_stmt1.type() == typeid(If)) { If& _if = boost::get(_stmt1);