Преглед изворни кода

* Use a register alias while handling reg deallocs in trgobj.instr_spill_register()
to be in sync with commit b96057ad.

Yuriy Sydorov пре 3 година
родитељ
комит
61cf121533
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      compiler/rgobj.pas

+ 1 - 1
compiler/rgobj.pas

@@ -2820,7 +2820,7 @@ unit rgobj;
               belong to the previous instruction and not the current instruction }
               belong to the previous instruction and not the current instruction }
             if (tai_regalloc(loadpos).instr=instr) and
             if (tai_regalloc(loadpos).instr=instr) and
                (tai_regalloc(loadpos).ratype=ra_dealloc) then
                (tai_regalloc(loadpos).ratype=ra_dealloc) then
-              live_registers.add(getsupreg(tai_regalloc(loadpos).reg));
+              live_registers.add(get_alias(getsupreg(tai_regalloc(loadpos).reg)));
             loadpos:=tai(loadpos.previous);
             loadpos:=tai(loadpos.previous);
           end;
           end;
         loadpos:=tai(loadpos.next);
         loadpos:=tai(loadpos.next);