소스 검색

* hlgcodegen needed when creating module info (fixes AV)

Michaël Van Canneyt 1 년 전
부모
커밋
3302dae600
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/wasm32/nwasmutil.pas

+ 2 - 0
compiler/wasm32/nwasmutil.pas

@@ -173,6 +173,7 @@ implementation
                   thlcgwasm(hlcg).g_procdef(list,proc);
             end;
          end;
+      create_hlcodegen;
       InsertModuleInfo(list,current_module);
       cur_unit:=tused_unit(usedunits.First);
       while assigned(cur_unit) do
@@ -180,6 +181,7 @@ implementation
           InsertModuleInfo(list,cur_unit.u);
           cur_unit:=tused_unit(cur_unit.Next);
         end;
+      destroy_hlcodegen;
 
       modules.Free;
     end;