mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 12:10:47 +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;
|
level := 0;
|
||||||
while assigned(hp) do
|
while assigned(hp) do
|
||||||
begin
|
begin
|
||||||
|
if hp.typ=ait_instruction then
|
||||||
if IsIT(taicpu(hp).opcode) then
|
if IsIT(taicpu(hp).opcode) then
|
||||||
break
|
break
|
||||||
else if hp.typ=ait_instruction then
|
else
|
||||||
inc(level);
|
inc(level);
|
||||||
|
|
||||||
hp:=tai(hp.Previous);
|
hp:=tai(hp.Previous);
|
||||||
|
Loading…
Reference in New Issue
Block a user