Browse Source
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 #2347pull/2324/head
Alex Crichton
4 years ago
committed by
GitHub
2 changed files with 28 additions and 0 deletions
@ -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)) |
|||
) |
Loading…
Reference in new issue