Fix overriding procedure information for literals

This commit is contained in:
gingerBill
2023-02-17 13:00:37 +00:00
parent 210f47b8ab
commit 8a2a70a3c2
7 changed files with 33 additions and 11 deletions

View File

@@ -411,7 +411,6 @@ gb_internal lbValue lb_const_value(lbModule *m, Type *type, ExactValue value, bo
Ast *expr = unparen_expr(value.value_procedure);
if (expr->kind == Ast_ProcLit) {
res = lb_generate_anonymous_proc_lit(m, str_lit("_proclit"), expr);
} else {
Entity *e = entity_from_expr(expr);
res = lb_find_procedure_value_from_entity(m, e);