mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 13:08:49 +02:00
Check that tai returned by GetNextInstruction is really a taicpu object before using an explicit typecast
This commit is contained in:
parent
d1a12846ba
commit
d53af12a6d
@ -4535,7 +4535,7 @@ unit aoptx86;
|
||||
end
|
||||
else if (taicpu(hp2).oper[0]^.typ = top_ref) and
|
||||
GetNextInstruction(hp2, hp4) and
|
||||
(taicpu(hp4).opcode = A_MOV) then
|
||||
(hp4 is taicpu) and (taicpu(hp4).opcode = A_MOV) then
|
||||
{ Optimise the following first:
|
||||
movl [mem1],reg1
|
||||
movl [mem1],reg2
|
||||
|
Loading…
Reference in New Issue
Block a user