Fix and improve x->y() behaviour to minimize duplicate evaluation

This commit is contained in:
gingerBill
2022-07-24 12:39:59 +01:00
parent 227ee0f705
commit d492fb3501
3 changed files with 34 additions and 4 deletions
+2 -1
View File
@@ -113,7 +113,8 @@ lbProcedure *lb_create_procedure(lbModule *m, Entity *entity, bool ignore_body)
p->branch_blocks.allocator = a;
p->context_stack.allocator = a;
p->scope_stack.allocator = a;
map_init(&p->selector_values, a);
map_init(&p->selector_values, a, 0);
map_init(&p->selector_addr, a, 0);
if (p->is_foreign) {
lb_add_foreign_library_path(p->module, entity->Procedure.foreign_library);