From 12902821d63973e49f34fe5826f1069ca4ea605b Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 9 Sep 2018 13:48:33 +0100 Subject: Make diverging procedure types different from ones without a return type --- src/ir_print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 5c6a9cb0a..8de79fd07 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1475,7 +1475,7 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { } ir_write_str_lit(f, ")"); - if (proc_type->Proc.no_return) { + if (proc_type->Proc.diverging) { ir_write_str_lit(f, " noreturn"); } ir_print_debug_location(f, m, value, instr->block->proc); @@ -1627,7 +1627,7 @@ void ir_print_proc(irFileBuffer *f, irModule *m, irProcedure *proc) { break; } - if (proc_type->no_return) { + if (proc_type->diverging) { ir_write_str_lit(f, "noreturn "); } -- cgit v1.2.3