From d358af6515acf70b6d4065d1b00c3235f09fe823 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 20 Nov 2019 00:00:34 +0100 Subject: [PATCH] Fix Wasm transform. --- libyul/backends/wasm/EVMToEWasmTranslator.cpp | 2 ++ libyul/backends/wasm/WordSizeTransform.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libyul/backends/wasm/EVMToEWasmTranslator.cpp b/libyul/backends/wasm/EVMToEWasmTranslator.cpp index 6dd6375de..6d4688c9a 100644 --- a/libyul/backends/wasm/EVMToEWasmTranslator.cpp +++ b/libyul/backends/wasm/EVMToEWasmTranslator.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -702,6 +703,7 @@ Object EVMToEWasmTranslator::run(Object const& _object) FunctionHoister::run(context, ast); FunctionGrouper::run(context, ast); MainFunction{}(ast); + ForLoopConditionIntoBody::run(context, ast); ExpressionSplitter::run(context, ast); WordSizeTransform::run(m_dialect, ast, nameDispenser); diff --git a/libyul/backends/wasm/WordSizeTransform.h b/libyul/backends/wasm/WordSizeTransform.h index 21d586439..3bdfa631d 100644 --- a/libyul/backends/wasm/WordSizeTransform.h +++ b/libyul/backends/wasm/WordSizeTransform.h @@ -55,7 +55,7 @@ namespace yul * takes four u64 parameters and is supposed to return the logical disjunction * of them as a u64 value. If this name is already used somewhere, it is renamed. * - * Prerequisite: Disambiguator, ExpressionSplitter + * Prerequisite: Disambiguator, ForLoopConditionIntoBody, ExpressionSplitter */ class WordSizeTransform: public ASTModifier {