From 939a45a17b0d0e940bfe981036f8e358376a7315 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 18 Sep 2023 13:29:10 -0700 Subject: Fix validation error message for table.fill (#5953) table.fill requires bulk memory to be enabled, not reference types. --- src/wasm/wasm-validator.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/wasm/wasm-validator.cpp b/src/wasm/wasm-validator.cpp index 41ddd00f5..2d00c4b67 100644 --- a/src/wasm/wasm-validator.cpp +++ b/src/wasm/wasm-validator.cpp @@ -2296,10 +2296,9 @@ void FunctionValidator::visitTableGrow(TableGrow* curr) { } void FunctionValidator::visitTableFill(TableFill* curr) { - shouldBeTrue( - getModule()->features.hasBulkMemory(), - curr, - "table.fill requires reference types [--enable-reference-types]"); + shouldBeTrue(getModule()->features.hasBulkMemory(), + curr, + "table.fill requires bulk-memory [--enable-bulk-memory]"); auto* table = getModule()->getTableOrNull(curr->table); if (shouldBeTrue(!!table, curr, "table.fill table must exist")) { shouldBeSubType(curr->value->type, -- cgit v1.2.3