* moved the insertion of the wasm locals asmlist to a local subroutine

This commit is contained in:
Nikolay Nikolov 2023-10-18 01:50:31 +03:00
parent 0e39e7c12d
commit e81cff0408

View File

@ -674,12 +674,17 @@ implementation
local.last:=true;
end;
procedure insert_localslist(destlist,localslist: TAsmList);
begin
destlist.insertListAfter(findfirst_tai_functype(destlist),localslist);
end;
var
localslist: TAsmList;
labels_resolved: Boolean;
begin
localslist:=prepare_locals;
aktproccode.insertListAfter(findfirst_tai_functype(aktproccode),localslist);
insert_localslist(aktproccode,localslist);
localslist.Free;
replace_local_frame_pointer(aktproccode);