summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_phi_builder.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_phi_builder.c
parent4d4335c81a3f7d8434d9983881a63abcbc29dd5c (diff)
nir: zero allocated memory where needed
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_phi_builder.c')
-rw-r--r--src/compiler/nir/nir_phi_builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_phi_builder.c b/src/compiler/nir/nir_phi_builder.c
index f96dad78dd8..6b4b6939917 100644
--- a/src/compiler/nir/nir_phi_builder.c
+++ b/src/compiler/nir/nir_phi_builder.c
@@ -81,7 +81,7 @@ struct nir_phi_builder_value {
struct nir_phi_builder *
nir_phi_builder_create(nir_function_impl *impl)
{
- struct nir_phi_builder *pb = ralloc(NULL, struct nir_phi_builder);
+ struct nir_phi_builder *pb = rzalloc(NULL, struct nir_phi_builder);
pb->shader = impl->function->shader;
pb->impl = impl;