瀏覽代碼

* AArch64: TCpuAsmOptimizer.RegLoadedWithNewValue: check if p.ops=0

florian 3 年之前
父節點
當前提交
fcdbb31ec4
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/aarch64/aoptcpu.pas

+ 3 - 0
compiler/aarch64/aoptcpu.pas

@@ -109,6 +109,9 @@ Implementation
           ;
       end;
 
+      if p.ops=0 then
+        exit;
+
       case p.oper[0]^.typ of
         top_reg:
           Result := (p.oper[0]^.reg = reg);