mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 07:40:27 +02:00
* Reference counts are now properly incremented on duplicated taicpu objects
This commit is contained in:
parent
799c22d553
commit
94c87243ca
@ -3143,6 +3143,14 @@ implementation
|
|||||||
begin
|
begin
|
||||||
new(p.oper[i]^.ref);
|
new(p.oper[i]^.ref);
|
||||||
p.oper[i]^.ref^:=oper[i]^.ref^;
|
p.oper[i]^.ref^:=oper[i]^.ref^;
|
||||||
|
if Assigned(p.oper[i]^.ref^.symbol) then
|
||||||
|
p.oper[i]^.ref^.symbol.increfs;
|
||||||
|
if Assigned(p.oper[i]^.ref^.relsymbol) then
|
||||||
|
p.oper[i]^.ref^.relsymbol.increfs;
|
||||||
|
{$ifdef jvm}
|
||||||
|
if Assigned(p.oper[i]^.ref^.indexsymbol) then
|
||||||
|
p.oper[i]^.ref^.indexsymbol.increfs;
|
||||||
|
{$endif jvm}
|
||||||
end;
|
end;
|
||||||
{$ifdef ARM}
|
{$ifdef ARM}
|
||||||
top_shifterop:
|
top_shifterop:
|
||||||
|
Loading…
Reference in New Issue
Block a user