Quellcode durchsuchen

Fix error in register allocation inside fixref method

Pierre Muller vor 1 Woche
Ursprung
Commit
49c9a1f323
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      compiler/loongarch64/cgcpu.pas

+ 1 - 1
compiler/loongarch64/cgcpu.pas

@@ -1619,7 +1619,7 @@ implementation
           begin
             if ref.offset<>0 then
               begin
-                if (tmpreg<>NR_NO) and (ref.index=tmpreg) then
+                if (tmpreg<>NR_NO) and ((ref.index=tmpreg) or (ref.base=tmpreg)) then
                   begin
                     tmpreg2:=getintregister(list,OS_INT);
                     ltmpreg:=tmpreg2;