lang: codegen: function load now uses func type instead of id

This commit is contained in:
2025-04-24 09:25:21 +01:00
parent 9b460a584d
commit da4aa7df78

View File

@@ -77,7 +77,7 @@ static struct code_generator_result gen_lambda(
= mie_builder_get_data_ptr(gen->c_builder, "Lambda");
struct mie_value *sel = mie_ctx_get_selector(gen->c_ctx, "_M3new4funcE");
struct mie_value *func_value = mie_builder_load(
gen->c_builder, id, MIE_VALUE(lambda->s_func), NULL);
gen->c_builder, func_type, MIE_VALUE(lambda->s_func), NULL);
struct mie_value *args[] = {
func_value,
};