Fix Wasm transform.

This commit is contained in:
chriseth 2019-11-20 00:00:34 +01:00
parent 8f645f025c
commit d358af6515
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <libyul/optimiser/Disambiguator.h> #include <libyul/optimiser/Disambiguator.h>
#include <libyul/optimiser/NameDisplacer.h> #include <libyul/optimiser/NameDisplacer.h>
#include <libyul/optimiser/OptimiserStep.h> #include <libyul/optimiser/OptimiserStep.h>
#include <libyul/optimiser/ForLoopConditionIntoBody.h>
#include <libyul/AsmParser.h> #include <libyul/AsmParser.h>
#include <libyul/AsmAnalysis.h> #include <libyul/AsmAnalysis.h>
@ -702,6 +703,7 @@ Object EVMToEWasmTranslator::run(Object const& _object)
FunctionHoister::run(context, ast); FunctionHoister::run(context, ast);
FunctionGrouper::run(context, ast); FunctionGrouper::run(context, ast);
MainFunction{}(ast); MainFunction{}(ast);
ForLoopConditionIntoBody::run(context, ast);
ExpressionSplitter::run(context, ast); ExpressionSplitter::run(context, ast);
WordSizeTransform::run(m_dialect, ast, nameDispenser); WordSizeTransform::run(m_dialect, ast, nameDispenser);

View File

@ -55,7 +55,7 @@ namespace yul
* takes four u64 parameters and is supposed to return the logical disjunction * 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. * 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 class WordSizeTransform: public ASTModifier
{ {