Do allocate a new regset for top_regset for ARM compiler to avoid heap memory corruption

This commit is contained in:
Pierre Muller 2024-05-02 13:52:04 +00:00
parent f6a0da71fc
commit 1e5240b5a4

View File

@ -3159,6 +3159,11 @@ implementation
{$endif jvm}
end;
{$ifdef ARM}
top_regset:
begin
new(p.oper[i]^.regset);
p.oper[i]^.regset^:=oper[i]^.regset^;
end;
top_shifterop:
begin
new(p.oper[i]^.shifterop);