Commit efec4f90 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3dcompiler: Handle loops in free_instr().

parent c5aa0fee
......@@ -2202,6 +2202,12 @@ static void free_ir_if(struct hlsl_ir_if *if_node)
d3dcompiler_free(if_node);
}
static void free_ir_loop(struct hlsl_ir_loop *loop)
{
free_instr_list(loop->body);
d3dcompiler_free(loop);
}
static void free_ir_jump(struct hlsl_ir_jump *jump)
{
d3dcompiler_free(jump);
......@@ -2232,6 +2238,9 @@ void free_instr(struct hlsl_ir_node *node)
case HLSL_IR_IF:
free_ir_if(if_from_node(node));
break;
case HLSL_IR_LOOP:
free_ir_loop(loop_from_node(node));
break;
case HLSL_IR_JUMP:
free_ir_jump(jump_from_node(node));
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment