Browse Source

* use the high level code generator's getaddressregister method in thlcgobj.maybe_change_load_node_reg

git-svn-id: trunk@33636 -
nickysn 9 years ago
parent
commit
18538494b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/hlcgobj.pas

+ 1 - 1
compiler/hlcgobj.pas

@@ -4241,7 +4241,7 @@ implementation
             else
             else
 {$endif cpu64bitalu}
 {$endif cpu64bitalu}
               if getregtype(rr.old)=R_ADDRESSREGISTER then
               if getregtype(rr.old)=R_ADDRESSREGISTER then
-                rr.new := cg.getaddressregister(current_asmdata.CurrAsmList)
+                rr.new := hlcg.getaddressregister(current_asmdata.CurrAsmList,n.resultdef)
               else
               else
                 rr.new := cg.getintregister(current_asmdata.CurrAsmList,n.location.size);
                 rr.new := cg.getintregister(current_asmdata.CurrAsmList,n.location.size);
           end;
           end;