summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_search.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_search.c
parent4d4335c81a3f7d8434d9983881a63abcbc29dd5c (diff)
nir: zero allocated memory where needed
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_search.c')
-rw-r--r--src/compiler/nir/nir_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_search.c b/src/compiler/nir/nir_search.c
index f24a7b9d07f..b34b13fdb89 100644
--- a/src/compiler/nir/nir_search.c
+++ b/src/compiler/nir/nir_search.c
@@ -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: {