summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-02-22 22:38:05 -0800
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-02-22 22:38:05 -0800
commit4c160b6bd8782a95516d78e039b0f070b4026b5d (patch)
tree4dc553aca3ec760686890e2a7a4fbeec055fe6c8 /src
parenteb1321199711ba45be1cf499ee5c42dc8852dc1d (diff)
nir: fix MSVC build
Zero initialize struct with {0} instead of {}.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_opt_copy_prop_vars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_copy_prop_vars.c b/src/compiler/nir/nir_opt_copy_prop_vars.c
index 27e320e1710..61f3dd8a9df 100644
--- a/src/compiler/nir/nir_opt_copy_prop_vars.c
+++ b/src/compiler/nir/nir_opt_copy_prop_vars.c
@@ -835,7 +835,7 @@ copy_prop_vars_block(struct copy_prop_var_state *state,
*/
kill_aliases(copies, nir_deref_instr_parent(dst), 0xf);
} else {
- struct value value = {};
+ struct value value = {0};
value_set_ssa_components(&value, intrin->src[1].ssa,
intrin->num_components);
unsigned wrmask = nir_intrinsic_write_mask(intrin);