소스 검색

* inherit modification flag from load nodes when creating temp nodes when inlining, dfa/cse need this information

git-svn-id: trunk@22056 -
florian 13 년 전
부모
커밋
2c122a9bf6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/ncal.pas

+ 2 - 0
compiler/ncal.pas

@@ -3639,6 +3639,8 @@ implementation
                      not assigned(inlinelocals[indexnr]) then
                     internalerror(20040720);
                   temp := tnode(inlinelocals[indexnr]).getcopy;
+                  { inherit modification information, this is needed by the dfa/cse }
+                  temp.flags:=temp.flags+(n.flags*[nf_modify,nf_write]);
                   n.free;
                   n := temp;
                   typecheckpass(n);