Browse Source

* hp1 can have any condition in this case so don't access hp1.condition because it
is not guranteed that hp1 is actually a tai_instruction before calling MatchInstruction

git-svn-id: trunk@22319 -

florian 13 years ago
parent
commit
2f1989c1a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/arm/aoptcpu.pas

+ 1 - 1
compiler/arm/aoptcpu.pas

@@ -885,7 +885,7 @@ Implementation
                        GetNextInstruction(p, hp1) and
                        GetNextInstruction(p, hp1) and
                        MatchInstruction(hp1, [A_ADD, A_ADC, A_RSB, A_RSC, A_SUB, A_SBC,
                        MatchInstruction(hp1, [A_ADD, A_ADC, A_RSB, A_RSC, A_SUB, A_SBC,
                                               A_AND, A_BIC, A_EOR, A_ORR, A_MOV, A_MVN],
                                               A_AND, A_BIC, A_EOR, A_ORR, A_MOV, A_MVN],
-                                        [C_NONE, taicpu(hp1).condition], []) and
+                                        [], []) and
                        {MOV and MVN might only have 2 ops}
                        {MOV and MVN might only have 2 ops}
                        (taicpu(hp1).ops = 3) and
                        (taicpu(hp1).ops = 3) and
                        MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^.reg) and
                        MatchOperand(taicpu(p).oper[0]^, taicpu(hp1).oper[0]^.reg) and