소스 검색

Minimalist change to avoid Invalid Typecast error on class when compiled with '-CriotR -O2' for i386-go32v2 target

git-svn-id: trunk@43565 -
pierre 5 년 전
부모
커밋
c882828fd0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/i386/aoptcpu.pas

+ 2 - 0
compiler/i386/aoptcpu.pas

@@ -94,6 +94,8 @@ unit aoptcpu;
                   p := tai(p.next);
                   Result:=true;
                 end;
+              if not (p is taicpu) then
+                exit;
               case taicpu(p).opcode Of
                 A_IMUL:
                   Result:=PrePeepholeOptIMUL(p);