Explorar el Código

* ensure that the tai is an instruction in PostPeepHoleOptsCpu before
casting as such

git-svn-id: trunk@32231 -

Jonas Maebe hace 9 años
padre
commit
5f4ba2c227
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      compiler/jvm/aoptcpu.pas

+ 1 - 0
compiler/jvm/aoptcpu.pas

@@ -174,6 +174,7 @@ Implementation
   function TCpuAsmOptimizer.PostPeepHoleOptsCpu(var p: tai): boolean;
     begin
       result:=
+        (p.typ=ait_instruction) and
         RemoveLoadLoadSwap(p);
     end;