* set the last=true property of the last tai_local in the locals list in the

beginning of insert_localslist, instead of in the end of prepare_locals
This commit is contained in:
Nikolay Nikolov 2023-10-18 01:52:44 +03:00
parent 5b64e5b957
commit 8b00598cab

View File

@ -670,13 +670,15 @@ implementation
l:=l.nextseq;
Inc(FFirstFreeLocal);
end;
if assigned(local) then
local.last:=true;
end;
procedure insert_localslist(destlist,localslist: TAsmList);
begin
destlist.insertListAfter(findfirst_tai_functype(destlist),localslist);
if assigned(localslist) then
begin
tai_local(localslist.Last).last:=true;
destlist.insertListAfter(findfirst_tai_functype(destlist),localslist);
end;
end;
var