diff --git a/compiler/arm/rgcpu.pas b/compiler/arm/rgcpu.pas index 65a7fda72f..7fa6c16e2d 100644 --- a/compiler/arm/rgcpu.pas +++ b/compiler/arm/rgcpu.pas @@ -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;