summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-10-26 12:34:09 -0600
committerBrian Paul <[email protected]>2018-10-26 12:35:48 -0600
commit7e64e39f8bb54e45cc76dcd33d38537696e53a44 (patch)
treeab5dcb6e4c5cf85ad146f373439a3950544f5d08 /src
parent07eb8e74664f47ebd8d89e92311ca984542088fd (diff)
nir: Fix array initializer
Empty initializer is not standard C. This fixes MSVC build. Trivial.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir_opt_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c
index 72a7285c1ea..1f2e1f21130 100644
--- a/src/compiler/nir/nir_opt_if.c
+++ b/src/compiler/nir/nir_opt_if.c
@@ -449,7 +449,7 @@ propagate_condition_eval(nir_builder *b, nir_if *nif, nir_src *use_src,
b->cursor = nir_before_src(alu_use, is_if_condition);
- nir_ssa_def *def[2] = { };
+ nir_ssa_def *def[2] = {0};
for (unsigned i = 0; i < nir_op_infos[alu->op].num_inputs; i++) {
if (alu->src[i].src.ssa == use_src->ssa) {
def[i] = nir_imm_bool(b, bool_value);