-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a panic in table-ops translation (#2350)
This fixes an issue where `ensure_inserted_block()` wasn't called before we do some block manipulation in the Wasmtime translation of some table-related instructions. It looks like `ensure_inserted_block()` is otherwise called on most instructions being added, so we just need to call it explicitly it seems here. Closes #2347
- Loading branch information
1 parent
b611a94
commit d0382a1
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
(module | ||
(func $test (param i32) (result externref) | ||
i32.const 0 | ||
if | ||
else | ||
end | ||
local.get 0 | ||
table.get 0 | ||
) | ||
(table 4 externref) | ||
(export "test" (func $test)) | ||
) | ||
|
||
(module | ||
(func $test (param i32) | ||
i32.const 0 | ||
if | ||
else | ||
end | ||
local.get 0 | ||
ref.null extern | ||
table.set 0 | ||
) | ||
(table 4 externref) | ||
(export "test" (func $test)) | ||
) |