Przeglądaj źródła

* firstpass rather than typecheckpass statements added to the call node
init/done block, as these can be added while pass_1 is ongoing

git-svn-id: trunk@31327 -

Jonas Maebe 10 lat temu
rodzic
commit
c95a3f2cf7
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      compiler/ncal.pas

+ 2 - 2
compiler/ncal.pas

@@ -1758,7 +1758,7 @@ implementation
         { pass_1, while the the typeinfo is already required after the          }
         { typecheck pass for simplify purposes (not yet perfect, because the    }
         { statementnodes themselves are not typechecked this way)               }
-        typecheckpass(n);
+        firstpass(n);
         addstatement(lastinitstatement,n);
       end;
 
@@ -1772,7 +1772,7 @@ implementation
         else
           lastdonestatement:=laststatement(callcleanupblock);
         { see comments in add_init_statement }
-        typecheckpass(n);
+        firstpass(n);
         addstatement(lastdonestatement,n);
       end;