Index: test/cctest/wasm/test-run-wasm.cc |
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc |
index 1686352b637887c25d7f8a34aa791827e28824c8..2fa1c10f660e825a86c475807efd003e635644bb 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -1851,13 +1851,19 @@ |
FunctionSig* sig = WasmOpcodes::Signature(opcode); |
if (sig->parameter_count() == 1) { |
- byte code[] = {WASM_NO_LOCALS, kExprGetLocal, 0, static_cast<byte>(opcode)}; |
+ byte code[] = {WASM_NO_LOCALS, kExprGetLocal, 0, static_cast<byte>(opcode), |
+ WASM_END}; |
TestBuildingGraph(&zone, &jsgraph, nullptr, sig, nullptr, code, |
code + arraysize(code)); |
} else { |
CHECK_EQ(2, sig->parameter_count()); |
- byte code[] = {WASM_NO_LOCALS, kExprGetLocal, 0, kExprGetLocal, 1, |
- static_cast<byte>(opcode)}; |
+ byte code[] = {WASM_NO_LOCALS, |
+ kExprGetLocal, |
+ 0, |
+ kExprGetLocal, |
+ 1, |
+ static_cast<byte>(opcode), |
+ WASM_END}; |
TestBuildingGraph(&zone, &jsgraph, nullptr, sig, nullptr, code, |
code + arraysize(code)); |
} |