diff options
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 7acbbb0207..c4262bf799 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -666,7 +666,8 @@ static void ir_print_array_len(IrPrint *irp, IrInstructionArrayLen *instruction) } static void ir_print_ref(IrPrint *irp, IrInstructionRef *instruction) { - fprintf(irp->f, "ref "); + const char *const_str = instruction->is_const ? "const " : ""; + fprintf(irp->f, "%sref ", const_str); ir_print_other_instruction(irp, instruction->value); } |
