* WebAssembly: fixed crash when attempting to generate a functype directive for

a generic function
This commit is contained in:
Nikolay Nikolov 2024-08-25 20:49:48 +03:00
parent 7ce2f95db0
commit 54d65ff75c

View File

@ -2459,7 +2459,8 @@ implementation
procedure thlcgwasm.g_procdef(list: TAsmList; pd: tprocdef);
begin
list.Concat(tai_functype.create(pd.mangledname,tcpuprocdef(pd).create_functype));
if not pd.is_generic then
list.Concat(tai_functype.create(pd.mangledname,tcpuprocdef(pd).create_functype));
end;
procedure thlcgwasm.g_maybe_checkforexceptions(list: TasmList);