Improve procedure group selection based on the minimum number of arguments

This commit is contained in:
gingerBill
2022-03-18 22:18:12 +00:00
parent df233f72a9
commit a68f0b2d72
5 changed files with 82 additions and 31 deletions
+9
View File
@@ -2657,6 +2657,15 @@ Array<Entity *> proc_group_entities(CheckerContext *c, Operand o) {
return procs;
}
Array<Entity *> proc_group_entities_cloned(CheckerContext *c, Operand o) {
auto entities = proc_group_entities(c, o);
if (entities.count == 0) {
return {};
}
return array_clone(permanent_allocator(), entities);
}
void init_core_type_info(Checker *c) {