소스 검색

* It is needed to mark $parentfp as used for all targets.

git-svn-id: trunk@45438 -
yury 5 년 전
부모
커밋
30e61067a0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      compiler/pparautl.pas

+ 2 - 2
compiler/pparautl.pas

@@ -156,8 +156,6 @@ implementation
               begin
                 vs:=cparavarsym.create('$parentfp',paranr,vs_value
                       ,parentfpvoidpointertype,[vo_is_parentfp,vo_is_hidden_para]);
-                { Mark $parentfp as used by default }
-                vs.varstate:=vs_read;
               end
             else
               begin
@@ -166,6 +164,8 @@ implementation
                 vs:=cparavarsym.create('$parentfp',paranr,vs_value,
                       tprocdef(pd.owner.defowner).parentfpstructptrtype,[vo_is_parentfp,vo_is_hidden_para]);
               end;
+            { Mark $parentfp as used by default }
+            vs.varstate:=vs_read;
             pd.parast.insert(vs);
 
             current_tokenpos:=storepos;