projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07eb8e7
)
nir: Fix array initializer
author
Brian Paul
<brianp@vmware.com>
Fri, 26 Oct 2018 18:34:09 +0000
(12:34 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 26 Oct 2018 18:35:48 +0000
(12:35 -0600)
Empty initializer is not standard C. This fixes MSVC build.
Trivial.
src/compiler/nir/nir_opt_if.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_opt_if.c
b/src/compiler/nir/nir_opt_if.c
index 72a7285c1eabd8b8592e9bc4fde8e124844e2dec..1f2e1f21130c47f66f32d08ffbc123f80697ce44 100644
(file)
--- 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);