From 158d98a7f2b270b12e79dcd94a4c0f82b158e3b3 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Tue, 14 Jan 2020 21:13:55 +0100 Subject: [PATCH] Print sentinel value in ir_print --- src/ir_print.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 3b90e7c80b..90ab410e4d 100644 --- 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); }