瀏覽代碼

* 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