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

@@ -340,7 +340,7 @@ static bitsize_tree *
build_bitsize_tree(void *mem_ctx, struct match_state *state,
const nir_search_value *value)
{
bitsize_tree *tree = ralloc(mem_ctx, bitsize_tree);
bitsize_tree *tree = rzalloc(mem_ctx, bitsize_tree);
switch (value->type) {
case nir_search_value_expression: {