Merge pull request #7755 from ethereum/fixWasmTransform

Fix Wasm transform.
This commit is contained in:
chriseth 2019-11-20 18:27:21 +01:00 committed by GitHub
commit f2c6e47038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include <libyul/optimiser/Disambiguator.h>
#include <libyul/optimiser/NameDisplacer.h>
#include <libyul/optimiser/OptimiserStep.h>
#include <libyul/optimiser/ForLoopConditionIntoBody.h>
#include <libyul/AsmParser.h>
#include <libyul/AsmAnalysis.h>
@ -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);

View File

@ -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
{