mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 07:28:26 +02:00
+ add the extra allocated locals before inserting the locals list in wasm32 tcpuprocinfo.postprocess_code
This commit is contained in:
parent
d50ef3381f
commit
fc9719f5f9
@ -713,6 +713,14 @@ implementation
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure add_extra_allocated_locals(localslist: TAsmList);
|
||||
var
|
||||
t: TWasmBasicType;
|
||||
begin
|
||||
for t in FAllocatedLocals do
|
||||
localslist.Concat(tai_local.create(t));
|
||||
end;
|
||||
|
||||
procedure insert_localslist(destlist,localslist: TAsmList);
|
||||
begin
|
||||
if assigned(localslist) then
|
||||
@ -736,6 +744,7 @@ implementation
|
||||
{$endif DEBUG_WASM_GOTO}
|
||||
resolve_labels_complex(aktproccode);
|
||||
|
||||
add_extra_allocated_locals(localslist);
|
||||
insert_localslist(aktproccode,localslist);
|
||||
localslist.Free;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user