Fix polymorphic procedure generation with debug information

This commit is contained in:
gingerBill
2018-12-14 15:45:14 +00:00
parent 26f11f12ab
commit 57d4333ed3
3 changed files with 12 additions and 5 deletions

View File

@@ -2712,7 +2712,7 @@ void ir_value_set_debug_location(irProcedure *proc, irValue *v) {
gb_printf_err("\t%.*s\n", LIT(instr->DebugDeclare.entity->token.string));
}
}
GB_PANIC("Value wihout debug location: %.*s %p; %p", LIT(proc->name), proc->entity, v);
GB_PANIC("Value without debug location: %.*s %p; %p :: %s", LIT(proc->name), proc->entity, v, type_to_string(proc->type));
}
}
}