瀏覽代碼

* fixed for subsetref/subsetreg

git-svn-id: trunk@4578 -
Jonas Maebe 19 年之前
父節點
當前提交
1a8c2f405d
共有 1 個文件被更改,包括 2 次插入0 次删除
  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