Pārlūkot izejas kodu

* x86: Bug fix where a tai type was assumed and could sometimes trigger an invalid typecast under -CriotR

J. Gareth "Curious Kit" Moreton 3 gadi atpakaļ
vecāks
revīzija
0e9ea11859
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      compiler/x86/aoptx86.pas

+ 1 - 0
compiler/x86/aoptx86.pas

@@ -4164,6 +4164,7 @@ unit aoptx86;
           (taicpu(p).oper[1]^.typ = top_reg) and
           (taicpu(p).opsize = S_L) and
           GetNextInstructionUsingRegTrackingUse(p,hp2,taicpu(p).oper[1]^.reg) and
+          (hp2.typ = ait_instruction) and
           (taicpu(hp2).opcode = A_AND) and
           (MatchOpType(taicpu(hp2),top_const,top_reg) or
            (MatchOpType(taicpu(hp2),top_reg,top_reg) and