diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-11-21 15:01:21 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-11-21 15:01:21 -0500 |
| commit | 052cd44588a94550a431adc6d1ff5af7e4439c88 (patch) | |
| tree | 14ca07924d517b717cfcabd0aa9baf4f75963f0c /src/ir_print.cpp | |
| parent | e80e8a80993734f22e9e9c1b8ba078b0b9b946c3 (diff) | |
| download | zig-052cd44588a94550a431adc6d1ff5af7e4439c88.tar.gz zig-052cd44588a94550a431adc6d1ff5af7e4439c88.zip | |
IR: fix codegen for arrays
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index dc20ac3ed2..b51adaf7d6 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -359,6 +359,9 @@ static void ir_print_elem_ptr(IrPrint *irp, IrInstructionElemPtr *instruction) { fprintf(irp->f, "["); ir_print_other_instruction(irp, instruction->elem_index); fprintf(irp->f, "]"); + if (!instruction->safety_check_on) { + fprintf(irp->f, " // no safety"); + } } static void ir_print_var_ptr(IrPrint *irp, IrInstructionVarPtr *instruction) { |
