浏览代码

* release temp when downgrading fpuregister value

git-svn-id: trunk@8530 -
peter 18 年之前
父节点
当前提交
2f044481ae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/x86/cgx86.pas

+ 2 - 1
compiler/x86/cgx86.pas

@@ -873,9 +873,10 @@ unit cgx86;
             (tosize<fromsize) then
            begin
              { can't round down to lower precision in x87 :/ }
-             tg.gettemp(list,tcgsize2size[tosize],tt_persistent,href);
+             tg.gettemp(list,tcgsize2size[tosize],tt_normal,href);
              a_loadfpu_reg_ref(list,fromsize,tosize,NR_ST,href);
              a_loadfpu_ref_reg(list,tosize,tosize,href,NR_ST);
+             tg.ungettemp(list,href);
            end;
        end;