Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
format
  • Loading branch information
kripken committed Jul 23, 2024
commit 459552fa794b5cdb1120871e5ff438f1167bd1d8
5 changes: 1 addition & 4 deletions src/wasm/wasm-validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2792,10 +2792,7 @@ void FunctionValidator::visitRefCast(RefCast* curr) {
return;
}
// Also error (more generically) on i32 and anything else invalid here.
if (!shouldBeTrue(
curr->type.isRef(),
curr,
"ref.cast must have ref type")) {
if (!shouldBeTrue(curr->type.isRef(), curr, "ref.cast must have ref type")) {
return;
}
shouldBeEqual(
Expand Down