aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-01-14 21:13:55 +0100
committerLemonBoy <thatlemon@gmail.com>2020-01-14 21:13:55 +0100
commit158d98a7f2b270b12e79dcd94a4c0f82b158e3b3 (patch)
tree47c422ac2eaf1956fd4fe673e06e8e7724c4fc95 /src
parentaf2ede4d96d5dd01a9db2f6fbfbe430214beaf63 (diff)
downloadzig-158d98a7f2b270b12e79dcd94a4c0f82b158e3b3.tar.gz
zig-158d98a7f2b270b12e79dcd94a4c0f82b158e3b3.zip
Print sentinel value in ir_print
Diffstat (limited to 'src')
-rw-r--r--src/ir_print.cpp4
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);
}