소스 검색

* 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);