Explorar o código

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

florian %!s(int64=3) %!d(string=hai) anos
pai
achega
fcdbb31ec4
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);