浏览代码

* 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 }
             if (tai_regalloc(loadpos).instr=instr) and
                (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);
           end;
         loadpos:=tai(loadpos.next);