mie: add null IR value

This commit is contained in:
2025-09-08 15:33:25 +01:00
parent 2ff85a7505
commit dd0dcc9c0a
4 changed files with 28 additions and 2 deletions

View File

@@ -259,11 +259,14 @@ static b_status write_operand(
struct mie_ir_converter *converter, struct mie_value *value, int flags)
{
if (!value) {
write_string(converter, "<null>");
write_string(converter, "<NULL VALUE PTR>");
return B_SUCCESS;
}
switch (value->v_type->t_id) {
case MIE_VALUE_NONE:
write_string(converter, "null");
return B_SUCCESS;
case MIE_VALUE_CONST:
return write_operand_const(converter, value, flags);
case MIE_VALUE_INSTR: