mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 14:19:31 +02:00
Fixed bug where hp1 object was used after being freed
This commit is contained in:
parent
2e8c99947a
commit
190c77e863
@ -5943,9 +5943,10 @@ unit aoptx86;
|
|||||||
if taicpu(hp1).opsize=S_B then
|
if taicpu(hp1).opsize=S_B then
|
||||||
begin
|
begin
|
||||||
taicpu(p).loadoper(0, taicpu(hp1).oper[1]^);
|
taicpu(p).loadoper(0, taicpu(hp1).oper[1]^);
|
||||||
RemoveInstruction(hp1);
|
|
||||||
if taicpu(hp1).oper[1]^.typ = top_reg then
|
if taicpu(hp1).oper[1]^.typ = top_reg then
|
||||||
AllocRegBetween(taicpu(hp1).oper[1]^.reg, p, hp2, UsedRegs);
|
AllocRegBetween(taicpu(hp1).oper[1]^.reg, p, hp2, UsedRegs);
|
||||||
|
|
||||||
|
RemoveInstruction(hp1);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user