* insert the wasm locals asm list after resolve_labels_complex, since it will (in the future) be able to allocate more locals, in order to resolve the branches and goto

This commit is contained in:
Nikolay Nikolov 2023-10-18 01:51:11 +03:00
parent e81cff0408
commit 5b64e5b957

View File

@ -684,8 +684,6 @@ implementation
labels_resolved: Boolean;
begin
localslist:=prepare_locals;
insert_localslist(aktproccode,localslist);
localslist.Free;
replace_local_frame_pointer(aktproccode);
@ -695,6 +693,9 @@ implementation
{$endif DEBUG_WASM_GOTO}
resolve_labels_complex(aktproccode);
insert_localslist(aktproccode,localslist);
localslist.Free;
inherited postprocess_code;
end;