Kaynağa Gözat

* check also register type in FindRegalloc

git-svn-id: trunk@22195 -
florian 13 yıl önce
ebeveyn
işleme
3e9baa3f47
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      compiler/aoptobj.pas

+ 3 - 1
compiler/aoptobj.pas

@@ -1021,7 +1021,9 @@ Unit AoptObj;
           If Assigned(StartPai) And
              (StartPai.typ = ait_regAlloc) Then
             Begin
-              if (tai_regalloc(StartPai).ratype=ra_alloc) and (getsupreg(tai_regalloc(StartPai).Reg) = getsupreg(Reg)) then
+              if (tai_regalloc(StartPai).ratype=ra_alloc) and
+                (getregtype(tai_regalloc(StartPai).Reg) = getregtype(Reg)) and
+                (getsupreg(tai_regalloc(StartPai).Reg) = getsupreg(Reg)) then
                begin
                  Result:=tai_regalloc(StartPai);
                  exit;