Sfoglia il codice sorgente

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

git-svn-id: trunk@33636 -
nickysn 9 anni fa
parent
commit
18538494b9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/hlcgobj.pas

+ 1 - 1
compiler/hlcgobj.pas

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