浏览代码

* when explicitly casting a variable, it might be sufficient if it is const_regable

git-svn-id: trunk@36137 -
florian 8 年之前
父节点
当前提交
c7ba611bf9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      compiler/ncnv.pas

+ 1 - 0
compiler/ncnv.pas

@@ -3846,6 +3846,7 @@ implementation
         if nf_explicit in flags then
         if nf_explicit in flags then
           { check if the result could be in a register }
           { check if the result could be in a register }
           if (not(tstoreddef(resultdef).is_intregable) and
           if (not(tstoreddef(resultdef).is_intregable) and
+              not(tstoreddef(resultdef).is_const_intregable) and
               not(tstoreddef(resultdef).is_fpuregable)) or
               not(tstoreddef(resultdef).is_fpuregable)) or
              ((left.resultdef.typ = floatdef) and
              ((left.resultdef.typ = floatdef) and
               (resultdef.typ <> floatdef))  then
               (resultdef.typ <> floatdef))  then