소스 검색

* 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 }