aboutsummaryrefslogtreecommitdiff
path: root/src/ir
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-28 16:58:49 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:04 +0200
commit203fbb778e9cfe3aff8b4dee6da9a103a171ca0e (patch)
treef1c128d3a0235e4f651c96e883d8226d071f6490 /src/ir
parent902a81528b9d2edcf93226a2ca13da6fcc1839e5 (diff)
Update hash map comments
Diffstat (limited to 'src/ir')
-rw-r--r--src/ir/ir.c1
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));
}