aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_dce.c')
-rw-r--r--src/compiler/nir/nir_opt_dce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_dce.c b/src/compiler/nir/nir_opt_dce.c
index 0aeb08a320d..5cefba3a720 100644
--- a/src/compiler/nir/nir_opt_dce.c
+++ b/src/compiler/nir/nir_opt_dce.c
@@ -131,7 +131,7 @@ init_block(nir_block *block, struct exec_list *worklist)
static bool
nir_opt_dce_impl(nir_function_impl *impl)
{
- struct exec_list *worklist = ralloc(NULL, struct exec_list);
+ struct exec_list *worklist = rzalloc(NULL, struct exec_list);
exec_list_make_empty(worklist);
nir_foreach_block(block, impl) {