mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 20:09:25 +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
|
||||
begin
|
||||
taicpu(p).loadoper(0, taicpu(hp1).oper[1]^);
|
||||
RemoveInstruction(hp1);
|
||||
if taicpu(hp1).oper[1]^.typ = top_reg then
|
||||
AllocRegBetween(taicpu(hp1).oper[1]^.reg, p, hp2, UsedRegs);
|
||||
|
||||
RemoveInstruction(hp1);
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user