diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-01-14 21:13:55 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-01-14 21:13:55 +0100 |
| commit | 158d98a7f2b270b12e79dcd94a4c0f82b158e3b3 (patch) | |
| tree | 47c422ac2eaf1956fd4fe673e06e8e7724c4fc95 /src | |
| parent | af2ede4d96d5dd01a9db2f6fbfbe430214beaf63 (diff) | |
| download | zig-158d98a7f2b270b12e79dcd94a4c0f82b158e3b3.tar.gz zig-158d98a7f2b270b12e79dcd94a4c0f82b158e3b3.zip | |
Print sentinel value in ir_print
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir_print.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
