From 203fbb778e9cfe3aff8b4dee6da9a103a171ca0e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 28 Feb 2020 16:58:49 +0100 Subject: Update hash map comments --- src/ir/ir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ir/ir.c') 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)); } -- cgit v1.2.3