Allow for foo() or_else unreachable() and other diverging procedures

This commit is contained in:
gingerBill
2022-08-05 12:19:57 +01:00
parent 576914aee1
commit a58e4d0359
3 changed files with 70 additions and 27 deletions

View File

@@ -1852,7 +1852,7 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
}
case BuiltinProc_unreachable:
LLVMBuildUnreachable(p->builder);
lb_emit_unreachable(p);
return {};