Fixed bug where hp1 object was used after being freed

This commit is contained in:
J. Gareth "Curious Kit" Moreton 2021-10-03 19:45:22 +01:00
parent 2e8c99947a
commit 190c77e863

View File

@ -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