Quellcode durchsuchen

* bail out early in tcgaarch64.make_simple_ref if possible

florian vor 1 Jahr
Ursprung
Commit
6c50c02f7c
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      compiler/aarch64/cgcpu.pas

+ 3 - 0
compiler/aarch64/cgcpu.pas

@@ -312,6 +312,9 @@ implementation
         { base + offset }
         if ref.base<>NR_NO then
           begin
+            if ref.offset=0 then
+              exit;
+
             { valid offset for LDUR/STUR -> use that }
             if (ref.addressmode=AM_OFFSET) and
                (op in [A_LDR,A_STR]) and