Index: test/fuzzer/wasm-code.cc |
diff --git a/test/fuzzer/wasm-code.cc b/test/fuzzer/wasm-code.cc |
index f463ea8bb14c215af4bed9b1cfcef2e7fc8f887e..75ce838fd23e44eefbc324b420e8ba974dc66964 100644 |
--- a/test/fuzzer/wasm-code.cc |
+++ b/test/fuzzer/wasm-code.cc |
@@ -42,8 +42,9 @@ |
WasmModuleBuilder builder(&zone); |
- v8::internal::wasm::WasmFunctionBuilder* f = |
- builder.AddFunction(sigs.i_iii()); |
+ uint16_t f1_index = builder.AddFunction(); |
+ WasmFunctionBuilder* f = builder.FunctionAt(f1_index); |
+ f->SetSignature(sigs.i_iii()); |
f->EmitCode(data, static_cast<uint32_t>(size)); |
f->SetExported(); |
f->SetName("main", 4); |