瀏覽代碼

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

git-svn-id: trunk@32231 -

Jonas Maebe 9 年之前
父節點
當前提交
5f4ba2c227
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;