aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-11-21 15:01:21 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-11-21 15:01:21 -0500
commit052cd44588a94550a431adc6d1ff5af7e4439c88 (patch)
tree14ca07924d517b717cfcabd0aa9baf4f75963f0c /src/ir_print.cpp
parente80e8a80993734f22e9e9c1b8ba078b0b9b946c3 (diff)
downloadzig-052cd44588a94550a431adc6d1ff5af7e4439c88.tar.gz
zig-052cd44588a94550a431adc6d1ff5af7e4439c88.zip
IR: fix codegen for arrays
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp3
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) {