diff options
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 3c6154b21d..52fb675515 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -934,7 +934,11 @@ static void ir_print_set_eval_branch_quota(IrPrint *irp, IrInstructionSetEvalBra static void ir_print_align_cast(IrPrint *irp, IrInstructionAlignCast *instruction) { fprintf(irp->f, "@alignCast("); - ir_print_other_instruction(irp, instruction->align_bytes); + if (instruction->align_bytes == nullptr) { + fprintf(irp->f, "null"); + } else { + ir_print_other_instruction(irp, instruction->align_bytes); + } fprintf(irp->f, ","); ir_print_other_instruction(irp, instruction->target); fprintf(irp->f, ")"); |
