aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dce.c
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <[email protected]>2016-10-11 13:54:58 +0300
committerMarek Olšák <[email protected]>2016-10-31 11:53:38 +0100
commit3bf6c6c3adb8e5dc2488fda93aa7dde3ca256b34 (patch)
tree396d46880e024cee0d55d49df60f1f16be3a197a /src/compiler/nir/nir_opt_dce.c
parent4d4335c81a3f7d8434d9983881a63abcbc29dd5c (diff)
nir: zero allocated memory where needed
Signed-off-by: Marek Olšák <[email protected]>
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) {