Commit ffa1f33e authored by Eric Engestrom's avatar Eric Engestrom Committed by Dylan Baker

nir: fix memleak in error path

Fixes: 2cf59861 ("nir: Add partial redundancy elimination for compares")
Signed-off-by: Eric Engestrom's avatarEric Engestrom <>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <>
Reviewed-by: default avatarIan Romanick <>
(cherry picked from commit 7659c619)
parent 0bbf6eab
......@@ -107,8 +107,10 @@ push_block(struct block_queue *bq)
if (!u_vector_init(&bi->instructions,
sizeof(nir_alu_instr *),
8 * sizeof(nir_alu_instr *)))
8 * sizeof(nir_alu_instr *))) {
return NULL;
exec_list_push_tail(&bq->blocks, &bi->node);
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