mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 05:48:40 +00:00
fix ir generation for set-space opcode
This commit is contained in:
+8
-1
@@ -141,7 +141,7 @@ e_oplist_push_set_space(Arena *arena, E_OpList *list, E_Space space)
|
|||||||
node->u64 = space;
|
node->u64 = space;
|
||||||
SLLQueuePush(list->first, list->last, node);
|
SLLQueuePush(list->first, list->last, node);
|
||||||
list->op_count += 1;
|
list->op_count += 1;
|
||||||
list->encoded_size += sizeof(space);
|
list->encoded_size += 1 + sizeof(space);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
@@ -1225,6 +1225,13 @@ e_append_oplist_from_irtree(Arena *arena, E_IRNode *root, E_OpList *out)
|
|||||||
case E_IRExtKind_SetSpace:
|
case E_IRExtKind_SetSpace:
|
||||||
{
|
{
|
||||||
e_oplist_push_set_space(arena, out, root->u64);
|
e_oplist_push_set_space(arena, out, root->u64);
|
||||||
|
for(E_IRNode *child = root->first;
|
||||||
|
child != &e_irnode_nil;
|
||||||
|
child = child->next)
|
||||||
|
{
|
||||||
|
e_append_oplist_from_irtree(arena, child, out);
|
||||||
|
}
|
||||||
|
|
||||||
}break;
|
}break;
|
||||||
|
|
||||||
case RDI_EvalOp_Cond:
|
case RDI_EvalOp_Cond:
|
||||||
|
|||||||
Reference in New Issue
Block a user