mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
prevent mutating nil trees in irtree generation
This commit is contained in:
+4
-1
@@ -122,7 +122,10 @@ e_push_irnode(Arena *arena, RDI_EvalOp op)
|
|||||||
internal void
|
internal void
|
||||||
e_irnode_push_child(E_IRNode *parent, E_IRNode *child)
|
e_irnode_push_child(E_IRNode *parent, E_IRNode *child)
|
||||||
{
|
{
|
||||||
SLLQueuePush_NZ(&e_irnode_nil, parent->first, parent->last, child, next);
|
if(parent != &e_irnode_nil && child != &e_irnode_nil)
|
||||||
|
{
|
||||||
|
SLLQueuePush_NZ(&e_irnode_nil, parent->first, parent->last, child, next);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: ir subtree building helpers
|
//- rjf: ir subtree building helpers
|
||||||
|
|||||||
Reference in New Issue
Block a user