Browse Source

* fixed for subsetref/subsetreg

git-svn-id: trunk@4578 -
Jonas Maebe 19 years ago
parent
commit
1a8c2f405d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/x86/nx86set.pas

+ 2 - 0
compiler/x86/nx86set.pas

@@ -189,6 +189,8 @@ implementation
          if nf_swaped in flags then
           swapleftright;
 
+         if not(left.location.loc in [LOC_REGISTER,LOC_CREGISTER,LOC_REFERENCE,LOC_CREFERENCE]) then
+           location_force_reg(current_asmdata.CurrAsmList,left.location,OS_INT,true);
          if genjumps then
           begin
             { It gives us advantage to check for the set elements