mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
Improve termination rules checking for missing return; Make diverging procedure -> ! be terminators
This commit is contained in:
@@ -6902,6 +6902,10 @@ lbValue lb_emit_call(lbProcedure *p, lbValue value, Array<lbValue> const &args,
|
||||
context_ptr = lb_find_or_generate_context_ptr(p);
|
||||
}
|
||||
|
||||
defer (if (pt->Proc.diverging) {
|
||||
LLVMBuildUnreachable(p->builder);
|
||||
});
|
||||
|
||||
set_procedure_abi_types(heap_allocator(), pt);
|
||||
|
||||
bool is_c_vararg = pt->Proc.c_vararg;
|
||||
|
||||
Reference in New Issue
Block a user