This patch is

Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net>

On March 11, 2019 21:31:03 Alyssa Rosenzweig <aly...@rosenzweig.io> wrote:

Fixes a gcc warning (and a theoretical NULL dereference error, though I
suppose shortcircuiting avoids that).

Signed-off-by: Alyssa Rosenzweig <aly...@rosenzweig.io>
---
src/compiler/nir/nir_loop_analyze.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/nir/nir_loop_analyze.c b/src/compiler/nir/nir_loop_analyze.c
index bc116f4d1d7..c8304611b28 100644
--- a/src/compiler/nir/nir_loop_analyze.c
+++ b/src/compiler/nir/nir_loop_analyze.c
@@ -843,7 +843,7 @@ try_find_trip_count_vars_in_iand(nir_alu_instr **alu,
   }

   /* Try the other iand src if needed */
-   if (*ind == NULL || *ind && (*ind)->type != basic_induction ||
+   if (*ind == NULL || (*ind && (*ind)->type != basic_induction) ||
       !is_var_constant(*limit)) {
      src = iand->src[1].src.ssa;
      if (src->parent_instr->type == nir_instr_type_alu) {
--
2.20.1



_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to