Make diverging procedure types different from ones without a return type

This commit is contained in:
gingerBill
2018-09-09 13:48:33 +01:00
parent f5549f6bde
commit 12902821d6
6 changed files with 17 additions and 16 deletions
+1 -1
View File
@@ -1951,7 +1951,7 @@ bool check_procedure_type(CheckerContext *ctx, Type *type, Ast *proc_type_node,
type->Proc.calling_convention = cc;
type->Proc.is_polymorphic = pt->generic;
type->Proc.specialization_count = specialization_count;
type->Proc.no_return = pt->no_return;
type->Proc.diverging = pt->diverging;
if (param_count > 0) {
Entity *end = params->Tuple.variables[param_count-1];