Skip to content

Commit 496bab7

Browse files
committed
fix br_table in polymorphic stack issue
1 parent 12f834a commit 496bab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/iwasm/interpreter/wasm_loader.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9954,7 +9954,7 @@ wasm_loader_check_br(WASMLoaderContext *loader_ctx, uint32 depth,
99549954
/* If the stack is in polymorphic state, just clear the stack
99559955
* and then re-push the values to make the stack top values
99569956
* match block type. */
9957-
if (cur_block->is_stack_polymorphic && !is_br_table) {
9957+
if (cur_block->is_stack_polymorphic) {
99589958
#if WASM_ENABLE_GC != 0
99599959
int32 j = reftype_map_count - 1;
99609960
#endif

0 commit comments

Comments
 (0)