[Mesa-dev] [PATCH 1/3] nir: remove leftover return value when lowering to SSA

Caio Marcelo de Oliveira Filho caio.oliveira at intel.com
Tue Apr 10 19:52:25 UTC 2018


The return value was needed to make use of the old nir_foreach_block
helper, but not needed anymore with the macro version.
---
 src/compiler/nir/nir_lower_vars_to_ssa.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/compiler/nir/nir_lower_vars_to_ssa.c b/src/compiler/nir/nir_lower_vars_to_ssa.c
index 0cc65143e7..fe30c69756 100644
--- a/src/compiler/nir/nir_lower_vars_to_ssa.c
+++ b/src/compiler/nir/nir_lower_vars_to_ssa.c
@@ -407,7 +407,7 @@ register_copy_instr(nir_intrinsic_instr *copy_instr,
 }
 
 /* Registers all variable uses in the given block. */
-static bool
+static void
 register_variable_uses_block(nir_block *block,
                              struct lower_variables_state *state)
 {
@@ -434,8 +434,6 @@ register_variable_uses_block(nir_block *block,
          continue;
       }
    }
-
-   return true;
 }
 
 /* Walks over all of the copy instructions to or from the given deref_node
-- 
2.17.0



More information about the mesa-dev mailing list