浏览代码

* use hlcgobj methods in maybe_change_load_node_reg

git-svn-id: branches/hlcgllvm@28107 -
Jonas Maebe 11 年之前
父节点
当前提交
0082d3e008
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/hlcgobj.pas

+ 2 - 2
compiler/hlcgobj.pas

@@ -3991,7 +3991,7 @@ implementation
                 cg64.a_load64_reg_reg(list,n.location.register64,joinreg64(rr.new,rr.newhi))
               else
 {$endif cpu64bitalu}
-                cg.a_load_reg_reg(list,n.location.size,n.location.size,n.location.register,rr.new);
+                a_load_reg_reg(list,n.resultdef,n.resultdef,n.location.register,rr.new);
             end;
           LOC_CFPUREGISTER:
             cg.a_loadfpu_reg_reg(list,n.location.size,n.location.size,n.location.register,rr.new);
@@ -4000,7 +4000,7 @@ implementation
             cg.a_loadmm_reg_reg(list,OS_M64,OS_M64,n.location.register,rr.new,nil);
 {$endif SUPPORT_MMX}
           LOC_CMMREGISTER:
-            cg.a_loadmm_reg_reg(list,n.location.size,n.location.size,n.location.register,rr.new,nil);
+            a_loadmm_reg_reg(list,n.resultdef,n.resultdef,n.location.register,rr.new,nil);
           else
             internalerror(2006090920);
         end;