Fix build by adding return.

This commit is contained in:
chriseth 2019-11-06 22:16:06 +01:00
parent 21e65076b3
commit 64cad825e3
2 changed files with 6 additions and 0 deletions

View File

@ -391,6 +391,11 @@ bytes BinaryTransform::operator()(BreakIf const&)
return {};
}
bytes BinaryTransform::operator()(Return const&)
{
return toBytes(Opcode::Return);
}
bytes BinaryTransform::operator()(Block const& _block)
{
return

View File

@ -52,6 +52,7 @@ public:
dev::bytes operator()(wasm::Loop const& _loop);
dev::bytes operator()(wasm::Break const& _break);
dev::bytes operator()(wasm::BreakIf const& _break);
dev::bytes operator()(wasm::Return const& _return);
dev::bytes operator()(wasm::Block const& _block);
dev::bytes operator()(wasm::FunctionDefinition const& _function);