Index: test/cctest/wasm/test-run-wasm-module.cc |
diff --git a/test/cctest/wasm/test-run-wasm-module.cc b/test/cctest/wasm/test-run-wasm-module.cc |
index 7519939ceb99763c6c9b6af26a66cd4a407e92c7..766f5d03dba17cf0cb4b2fe6e1a86b7a7f1d4c4c 100644 |
--- a/test/cctest/wasm/test-run-wasm-module.cc |
+++ b/test/cctest/wasm/test-run-wasm-module.cc |
@@ -110,8 +110,7 @@ TEST(Run_WasmModule_ReadLoadedDataSegment) { |
WASM_LOAD_MEM(MachineType::Int32(), WASM_I8(kDataSegmentDest0))}; |
f->EmitCode(code, sizeof(code)); |
byte data[] = {0xaa, 0xbb, 0xcc, 0xdd}; |
- builder->AddDataSegment(new (&zone) WasmDataSegmentEncoder( |
- &zone, data, sizeof(data), kDataSegmentDest0)); |
+ builder->AddDataSegment(data, sizeof(data), kDataSegmentDest0); |
TestModule(&zone, builder, 0xddccbbaa); |
} |