mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-14 09:44:26 +00:00
crash fix on poly
This commit is contained in:
@@ -7605,7 +7605,9 @@ gb_internal CallArgumentData check_call_arguments_proc_group(CheckerContext *c,
|
||||
|
||||
if (max_matched_features > 0) {
|
||||
for_array(i, valids) {
|
||||
Entity *p = procs[valids[i].index];
|
||||
// NOTE: A polymorphic candidate appends its instantiated entity to proc_entities above,
|
||||
// so valids[i].index can be >= procs.count.
|
||||
Entity *p = proc_entities[valids[i].index];
|
||||
Type *t = base_type(p->type);
|
||||
GB_ASSERT(t->kind == Type_Proc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user