From 3302dae600c38211c87ed5f2f3ec05755cda05aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Sat, 4 May 2024 15:57:04 +0200 Subject: [PATCH] * hlgcodegen needed when creating module info (fixes AV) --- compiler/wasm32/nwasmutil.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/wasm32/nwasmutil.pas b/compiler/wasm32/nwasmutil.pas index d19d4e2fd0..adf9e53dee 100644 --- a/compiler/wasm32/nwasmutil.pas +++ b/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;