瀏覽代碼

* take care of for loop counter read after loop

git-svn-id: trunk@44042 -
florian 5 年之前
父節點
當前提交
3c18dee694
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      compiler/optdfa.pas

+ 3 - 1
compiler/optdfa.pas

@@ -332,7 +332,9 @@ unit optdfa;
                   begin
                     { if yes, then we should warn }
                     { !!!!!! }
-                  end;
+                  end
+                else
+                  Include(tfornode(node).loopflags,lnf_dont_mind_loopvar_on_exit);
 
                 { first update the dummy node }