浏览代码

* no need to synchronise the upper bound of a for-loop after the loop
anymore if it is a regvar, because it cannot be a regvar anymore
after the fix for tw8883

git-svn-id: trunk@7358 -

Jonas Maebe 18 年之前
父节点
当前提交
fdc813db9a
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      compiler/ncgflw.pas

+ 2 - 3
compiler/ncgflw.pas

@@ -390,9 +390,8 @@ implementation
                  get_used_regvars(right,usedregvars);
                  { loop body }
                  get_used_regvars(t2,usedregvars);
-                 { end value if necessary }
-                 if (t1.location.loc = LOC_CREGISTER) then
-                   get_used_regvars(t1,usedregvars);
+                 { end value (t1) is not necessary (it cannot be a regvar, }
+                 { see webtbs/tw8883)                                      }
 
                  gen_sync_regvars(current_asmdata.CurrAsmList,usedregvars);
                end