From 61cf121533572a72ea65a7ec35bed1a5b3621a5b Mon Sep 17 00:00:00 2001 From: Yuriy Sydorov Date: Thu, 9 Sep 2021 16:32:55 +0300 Subject: [PATCH] * Use a register alias while handling reg deallocs in trgobj.instr_spill_register() to be in sync with commit b96057ad. --- compiler/rgobj.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rgobj.pas b/compiler/rgobj.pas index 3e0de068c6..e1238c633f 100644 --- a/compiler/rgobj.pas +++ b/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);