aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-08 02:09:26 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-08 02:09:26 -0500
commitd4a93dbac5b38bda79dc26872fcb87980ab4d272 (patch)
tree0810382264abd8a46af275f9fe4cd981be99bffd /src/ir_print.cpp
parent7d0fb281fee16d9c99f61c5bce090018228ae6df (diff)
downloadzig-d4a93dbac5b38bda79dc26872fcb87980ab4d272.tar.gz
zig-d4a93dbac5b38bda79dc26872fcb87980ab4d272.zip
IR: omit debug safety checks in for loop codegen
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 55ae7d3143..28246cc0f8 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -314,6 +314,9 @@ static void ir_print_bin_op(IrPrint *irp, IrInstructionBinOp *bin_op_instruction
ir_print_other_instruction(irp, bin_op_instruction->op1);
fprintf(irp->f, " %s ", ir_bin_op_id_str(bin_op_instruction->op_id));
ir_print_other_instruction(irp, bin_op_instruction->op2);
+ if (!bin_op_instruction->safety_check_on) {
+ fprintf(irp->f, " // no safety");
+ }
}
static void ir_print_decl_var(IrPrint *irp, IrInstructionDeclVar *decl_var_instruction) {