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