diff options
Diffstat (limited to 'src/ir')
-rw-r--r-- | src/ir/ir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/ir.c b/src/ir/ir.c index 1ca154a..a6ed931 100644 --- a/src/ir/ir.c +++ b/src/ir/ir.c @@ -271,6 +271,7 @@ static CHECK_RESULT int ir_add_ins_form2(Ir *self, IrInstruction ins_type, IrReg ins_form_2.lhs = lhs; ins_form_2.rhs = rhs; amal_log_debug("r%d = r%d %s r%d", *result, lhs, binop_type_to_string(ins_type), rhs); + /* TODO: Store ins_type as an uint8_t instead of int */ return_if_error(buffer_append(&self->instructions, &ins_type, 1)); return buffer_append(&self->instructions, &ins_form_2, sizeof(ins_form_2)); } |