mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 17:49:07 +02:00
[PATCH 156/188] normalizing call_indirect index
From 1c745e12ed007214835dd1286d51f4dc82b69dc8 Mon Sep 17 00:00:00 2001 From: Dmitry Boyarintsev <skalogryz.lists@gmail.com> Date: Fri, 27 Mar 2020 09:06:48 -0400 git-svn-id: branches/wasm@46152 -
This commit is contained in:
parent
7175dcdfa8
commit
260a3a3061
@ -104,8 +104,12 @@ begin
|
||||
|
||||
INST_call_indirect:
|
||||
begin
|
||||
if Assigned(ci.insttype) and (ci.insttype.typeNum<0) then
|
||||
ci.insttype.typeNum:=RegisterFuncType(m, ci.insttype);
|
||||
if Assigned(ci.insttype) and (ci.insttype.typeNum<0) then begin
|
||||
if ci.insttype.typeIdx <> '' then
|
||||
ci.insttype.typeNum:=FindFuncType(m, ci.insttype.typeIdx)
|
||||
else
|
||||
ci.insttype.typeNum:=RegisterFuncType(m, ci.insttype);
|
||||
end;
|
||||
end;
|
||||
|
||||
INST_br, INST_br_if, INST_br_table: begin
|
||||
|
Loading…
Reference in New Issue
Block a user