mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:19:18 +02:00
llvmpara: don't crash if a parameter has no paralocs
This commit is contained in:
parent
5ca8593f14
commit
b68512a969
@ -133,8 +133,9 @@ unit llvmpara;
|
||||
begin
|
||||
hp:=tparavarsym(paras[paranr]);
|
||||
paraloc:=hp.paraloc[side].location;
|
||||
if assigned(paraloc) and
|
||||
assigned(paraloc^.next) and
|
||||
if assigned(paraloc) then
|
||||
begin
|
||||
if assigned(paraloc^.next) and
|
||||
(hp.paraloc[side].def.typ in [orddef,enumdef,floatdef]) then
|
||||
begin
|
||||
if not(paraloc^.loc in [LOC_REGISTER,LOC_FPUREGISTER,LOC_MMREGISTER]) then
|
||||
@ -149,6 +150,7 @@ unit llvmpara;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure tllvmparamanager.createtempparaloc(list: TAsmList; calloption: tproccalloption; parasym: tparavarsym; can_use_final_stack_loc: boolean; var cgpara: TCGPara);
|
||||
var
|
||||
|
Loading…
Reference in New Issue
Block a user