Browse Source

+ added missing make_simple_ref

git-svn-id: trunk@1572 -
florian 20 years ago
parent
commit
1b97e2cffd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/x86/cgx86.pas

+ 4 - 1
compiler/x86/cgx86.pas

@@ -934,7 +934,10 @@ unit cgx86;
           internalerror(200312215);
         case loc.loc of
           LOC_CREFERENCE,LOC_REFERENCE:
-            list.concat(taicpu.op_ref_reg(asmop,S_NO,loc.reference,resultreg));
+            begin
+              make_simple_ref(exprasmlist,loc.reference);
+              list.concat(taicpu.op_ref_reg(asmop,S_NO,loc.reference,resultreg));
+            end;
           LOC_CMMREGISTER,LOC_MMREGISTER:
             list.concat(taicpu.op_reg_reg(asmop,S_NO,loc.register,resultreg));
           else