mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 16:49:17 +02:00
Avoid invalid typecast if hp is not an instruction
git-svn-id: trunk@49273 -
This commit is contained in:
parent
0670980981
commit
c2faf6a8fd
@ -400,9 +400,10 @@ unit rgcpu;
|
||||
level := 0;
|
||||
while assigned(hp) do
|
||||
begin
|
||||
if hp.typ=ait_instruction then
|
||||
if IsIT(taicpu(hp).opcode) then
|
||||
break
|
||||
else if hp.typ=ait_instruction then
|
||||
else
|
||||
inc(level);
|
||||
|
||||
hp:=tai(hp.Previous);
|
||||
|
Loading…
Reference in New Issue
Block a user