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