diff options
author | Thomas Lively <tlively@google.com> | 2023-09-18 13:29:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 13:29:10 -0700 |
commit | 939a45a17b0d0e940bfe981036f8e358376a7315 (patch) | |
tree | 78c2c8f334d0762af7d453b2ce477307b081e2c4 /src | |
parent | 003a6ffa56d7d1aa4918170236daaded6211d13b (diff) | |
download | binaryen-939a45a17b0d0e940bfe981036f8e358376a7315.tar.gz binaryen-939a45a17b0d0e940bfe981036f8e358376a7315.tar.bz2 binaryen-939a45a17b0d0e940bfe981036f8e358376a7315.zip |
Fix validation error message for table.fill (#5953)
table.fill requires bulk memory to be enabled, not reference types.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-validator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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, |