Print sentinel value in ir_print

This commit is contained in:
LemonBoy 2020-01-14 21:13:55 +01:00
parent af2ede4d96
commit 158d98a7f2

View File

@ -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);
}