diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-02-22 22:38:05 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-02-22 22:38:05 -0800 |
commit | 4c160b6bd8782a95516d78e039b0f070b4026b5d (patch) | |
tree | 4dc553aca3ec760686890e2a7a4fbeec055fe6c8 /src | |
parent | eb1321199711ba45be1cf499ee5c42dc8852dc1d (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.c | 2 |
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); |