Merge pull request #7246 from ethereum/fix-7245

Avoid aggregate initialization of EWasmToText class
This commit is contained in:
chriseth 2019-08-14 15:33:03 +02:00 committed by GitHub
commit fb8137dfed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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