|
@@ -5731,9 +5731,13 @@ Entity **populate_proc_parameter_list(CheckerContext *c, Type *proc_type, isize
|
|
|
}
|
|
|
} else {
|
|
|
// NOTE(bill): Create 'lhs' list in order to ignore parameters which are polymorphic
|
|
|
- lhs_count = pt->params->Tuple.variables.count;
|
|
|
+ if (pt->params == nullptr) {
|
|
|
+ lhs_count = 0;
|
|
|
+ } else {
|
|
|
+ lhs_count = pt->params->Tuple.variables.count;
|
|
|
+ }
|
|
|
lhs = gb_alloc_array(heap_allocator(), Entity *, lhs_count);
|
|
|
- for_array(i, pt->params->Tuple.variables) {
|
|
|
+ for (isize i = 0; i < lhs_count; i++) {
|
|
|
Entity *e = pt->params->Tuple.variables[i];
|
|
|
if (!is_type_polymorphic(e->type)) {
|
|
|
lhs[i] = e;
|