commit 158d98a7f2b270b12e79dcd94a4c0f82b158e3b3 (tree)
parent af2ede4d96d5dd01a9db2f6fbfbe430214beaf63
Author: LemonBoy <thatlemon@gmail.com>
Date: Tue, 14 Jan 2020 21:13:55 +0100
Print sentinel value in ir_print
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
@@ -930,6 +930,10 @@ static void ir_print_set_float_mode(IrPrint *irp, IrInstructionSetFloatMode *ins
static void ir_print_array_type(IrPrint *irp, IrInstructionArrayType *instruction) {
fprintf(irp->f, "[");
ir_print_other_instruction(irp, instruction->size);
+ if (instruction->sentinel != nullptr) {
+ fprintf(irp->f, ":");
+ ir_print_other_instruction(irp, instruction->sentinel);
+ }
fprintf(irp->f, "]");
ir_print_other_instruction(irp, instruction->child_type);
}