Browse Source

* fixed wrong tmpref usage as mentioned by Pierre on the mailing list

git-svn-id: trunk@17754 -
florian 14 years ago
parent
commit
ce76ce8769
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/i386/cgcpu.pas

+ 1 - 1
compiler/i386/cgcpu.pas

@@ -236,7 +236,7 @@ unit cgcpu;
                             (cs_create_pic in current_settings.moduleswitches)) then
                             (cs_create_pic in current_settings.moduleswitches)) then
                           begin
                           begin
                             tmpreg:=getaddressregister(list);
                             tmpreg:=getaddressregister(list);
-                            a_loadaddr_ref_reg(list,tmpref,tmpreg);
+                            a_loadaddr_ref_reg(list,r,tmpreg);
                             list.concat(taicpu.op_reg(A_PUSH,opsize,tmpreg));
                             list.concat(taicpu.op_reg(A_PUSH,opsize,tmpreg));
                           end
                           end
                         else if cs_create_pic in current_settings.moduleswitches then
                         else if cs_create_pic in current_settings.moduleswitches then