Skip to content

Commit 2c1d32c

Browse files
committed
fix
1 parent eb618f3 commit 2c1d32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasm/wasm-validator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3188,7 +3188,7 @@ void FunctionValidator::visitArrayInit(ArrayInit* curr) {
31883188
const char* mustBeArray =
31893189
"array.init_* destination must be an array reference";
31903190
if (curr->type == Type::unreachable ||
3191-
shouldBeTrue(curr->ref->type.isRef(), curr, mustBeArray) ||
3191+
!shouldBeTrue(curr->ref->type.isRef(), curr, mustBeArray) ||
31923192
curr->ref->type.getHeapType().isBottom() ||
31933193
!shouldBeTrue(curr->ref->type.isArray(), curr, mustBeArray)) {
31943194
return;

0 commit comments

Comments
 (0)