mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Print sentinel value in ir_print
This commit is contained in:
parent
af2ede4d96
commit
158d98a7f2
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user