summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_to_lcssa.c
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-20 18:00:09 +0100
committerEric Engestrom <[email protected]>2018-10-25 12:43:18 +0100
commite27902a261361e8a7980db14138ef13753db196d (patch)
tree021b6638314baf37073766f1092e2be736da75aa /src/compiler/nir/nir_to_lcssa.c
parentbb84fa146f2252f22999205a2904d8a948bffd3b (diff)
util: use C99 declaration in the for-loop set_foreach() macro
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_to_lcssa.c')
-rw-r--r--src/compiler/nir/nir_to_lcssa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_to_lcssa.c b/src/compiler/nir/nir_to_lcssa.c
index 0f62fc39400..7948b117927 100644
--- a/src/compiler/nir/nir_to_lcssa.c
+++ b/src/compiler/nir/nir_to_lcssa.c
@@ -122,7 +122,6 @@ convert_loop_exit_for_ssa(nir_ssa_def *def, void *void_state)
/* Create a phi node with as many sources pointing to the same ssa_def as
* the block has predecessors.
*/
- struct set_entry *entry;
set_foreach(block_after_loop->predecessors, entry) {
nir_phi_src *phi_src = ralloc(phi, nir_phi_src);
phi_src->src = nir_src_for_ssa(def);