From 9174f826aa0777b7ee2fb353673b58d3c81fba09 Mon Sep 17 00:00:00 2001 From: Graham Kelly Date: Mon, 22 Jan 2024 18:09:46 -0500 Subject: [PATCH] fix memory in the frontend --- src/frontend.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend.rs b/src/frontend.rs index 257000a..a7a86e8 100644 --- a/src/frontend.rs +++ b/src/frontend.rs @@ -1151,7 +1151,9 @@ impl<'a, 'b> FunctionBodyBuilder<'a, 'b> { | wasmparser::Operator::TableGet { .. } | wasmparser::Operator::TableSet { .. } | wasmparser::Operator::TableGrow { .. } - | wasmparser::Operator::TableSize { .. } => { + | wasmparser::Operator::TableSize { .. } + | wasmparser::Operator::MemoryCopy { .. } + | wasmparser::Operator::MemoryFill { .. }=> { self.emit(Operator::try_from(&op).unwrap(), loc)? }