arm paramanager: always create at least one paraloc

Even for parameters of 0 bytes. Matches behaviour on other targets.
This commit is contained in:
Jonas Maebe 2022-06-13 22:51:14 +02:00
parent dfe78668c2
commit 03a961709b

View File

@ -492,8 +492,7 @@ unit cpupara;
if paralen=0 then
internalerror(200410311);
{$endif EXTDEBUG}
while paralen>0 do
begin
repeat
paraloc:=hp.paraloc[side].add_location;
case loc of
LOC_REGISTER:
@ -678,7 +677,7 @@ unit cpupara;
end;
dec(paralen,tcgsize2size[paraloc^.size]);
firstparaloc:=false
end;
until paralen<=0;
end;
curintreg:=nextintreg;
curfloatreg:=nextfloatreg;