From bdbbd05b467d54f11413952480e9c90cc0c06900 Mon Sep 17 00:00:00 2001 From: Spotandjake <40705786+spotandjake@users.noreply.github.com> Date: Thu, 16 Jan 2025 21:34:49 -0500 Subject: [PATCH] feat(compiler): Use program location for `_gmain` (#2231) --- compiler/src/codegen/compcore.re | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/codegen/compcore.re b/compiler/src/codegen/compcore.re index 397346d50..c16ccf80f 100644 --- a/compiler/src/codegen/compcore.re +++ b/compiler/src/codegen/compcore.re @@ -3245,7 +3245,7 @@ let compile_main = (wasm_mod, env, prog) => { body: prog.main_body, stack_size: prog.main_body_stack_size, attrs: [], - func_loc: Grain_parsing.Location.dummy_loc, + func_loc: prog.prog_loc, }, ); };