Avoid aggregate initialization of EWasmToText class

This commit is contained in:
Bhargava Shastry 2019-08-14 12:07:37 +02:00
parent d5744b3c1c
commit ddc3ce0eae

View File

@ -55,7 +55,7 @@ string EWasmCodeTransform::run(Dialect const& _dialect, yul::Block const& _ast)
std::vector<wasm::FunctionImport> imports;
for (auto& imp: transform.m_functionsToImport)
imports.emplace_back(std::move(imp.second));
return EWasmToText{}.run(
return EWasmToText().run(
transform.m_globalVariables,
imports,
functions