aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-09-09 13:48:33 +0100
committergingerBill <bill@gingerbill.org>2018-09-09 13:48:33 +0100
commit12902821d63973e49f34fe5826f1069ca4ea605b (patch)
treede0d95adc10257b85c52c361b00b25f49412cb87 /src/ir_print.cpp
parentf5549f6bde21c2378700770eae5ab7bba46a3671 (diff)
Make diverging procedure types different from ones without a return type
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp4
1 files changed, 2 insertions, 2 deletions
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 ");
}