Ver Fonte

* also check regtype in get_spill_temp()

git-svn-id: branches/hlcgllvm@26979 -
Jonas Maebe há 11 anos atrás
pai
commit
c095a1b06a
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      compiler/llvm/rgllvm.pas

+ 1 - 0
compiler/llvm/rgllvm.pas

@@ -173,6 +173,7 @@ implementation
         for i:=0 to taillvm(supstart).ops-1 do
           begin
             if (taillvm(supstart).oper[i]^.typ=top_reg) and
+               (getregtype(taillvm(supstart).oper[i]^.reg)=regtype) and
                (getsupreg(taillvm(supstart).oper[i]^.reg)=supreg) then
               begin
                 def:=taillvm(supstart).spilling_get_reg_type(i);