Browse Source

* also check regtype in get_spill_temp()

git-svn-id: branches/hlcgllvm@26979 -
Jonas Maebe 11 years ago
parent
commit
c095a1b06a
1 changed files with 1 additions and 0 deletions
  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);