Index: src/wasm/module-decoder.cc |
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc |
index 558d17c5a6e1117e8cf4f9c37f52faaef43e965d..3e85a1b53cefd2e8ebbecf75cfa9a18e94b3f14e 100644 |
--- a/src/wasm/module-decoder.cc |
+++ b/src/wasm/module-decoder.cc |
@@ -575,7 +575,7 @@ class ModuleDecoder : public Decoder { |
FunctionBody body = {menv, function->sig, start_, |
start_ + function->code_start_offset, |
start_ + function->code_end_offset}; |
- TreeResult result = VerifyWasmCode(body); |
+ TreeResult result = VerifyWasmCode(module_zone->allocator(), body); |
if (result.failed()) { |
// Wrap the error message from the function decoder. |
std::ostringstream str; |