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