Переглянути джерело

Make sure nf_usercode_entry get transferred inside firstpass procedure

git-svn-id: trunk@49279 -
pierre 4 роки тому
батько
коміт
7721995c71
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      compiler/pass_1.pas

+ 1 - 0
compiler/pass_1.pas

@@ -189,6 +189,7 @@ implementation
                    { should the node be replaced? }
                    { should the node be replaced? }
                    if assigned(hp) then
                    if assigned(hp) then
                      begin
                      begin
+                       hp.flags := hp.flags + (p.flags * [nf_usercode_entry]);
                        p.free;
                        p.free;
                        { switch to new node }
                        { switch to new node }
                        p:=hp;
                        p:=hp;