소스 검색

* tai returned by GetNextInstructionUsingReg must be checked if it is really an instruction

git-svn-id: trunk@30443 -
florian 10 년 전
부모
커밋
db63693b7e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/avr/aoptcpu.pas

+ 1 - 0
compiler/avr/aoptcpu.pas

@@ -87,6 +87,7 @@ Implementation
                      (taicpu(p).oper[0]^.typ=top_reg) and
                      (taicpu(p).oper[1]^.typ=top_const) and
                      GetNextInstructionUsingReg(p, hp1, taicpu(p).oper[0]^.reg) and
+                     (hp1.typ=ait_instruction) and
                      (not RegModifiedBetween(taicpu(p).oper[0]^.reg, p, hp1)) and
                      (taicpu(hp1).opcode=A_CP) and
                      (taicpu(hp1).ops=2) and