Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 00ad0d981f940ba36da40a43c75ac766c9438287..c57dde3bcc4fe38cfba099316dda9fea1c73d90e 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2965,7 +2965,7 @@ static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
Handle<JSFunction> CompileJSToWasmWrapper( |
Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name, |
Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index) { |
- wasm::WasmFunction* func = &module->module->functions[index]; |
+ const wasm::WasmFunction* func = &module->module->functions[index]; |
//---------------------------------------------------------------------------- |
// Create the JSFunction object. |