nir: zero allocated memory where needed
[mesa.git] / src / compiler / nir / nir_phi_builder.c
index f96dad78dd855eb1e682c77bbed27571a478d52f..6b4b69399178ca48c6757b339fba2c7903728e37 100644 (file)
@@ -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;