nir: zero allocated memory where needed

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Juha-Pekka Heikkila
2016-10-11 13:54:58 +03:00
committed by Marek Olšák
parent 4d4335c81a
commit 3bf6c6c3ad
6 changed files with 7 additions and 7 deletions

View File

@@ -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) {