util: use C99 declaration in the for-loop set_foreach() macro
[mesa.git] / src / compiler / nir / nir_lower_io_to_temporaries.c
index d93e20e8d75a39e14ac1d50ff0c7cb373a1e1a3a..b83aaf46e6a663cddfb14d1b0bd91639f21b2f5c 100644 (file)
@@ -98,7 +98,6 @@ emit_output_copies_impl(struct lower_io_state *state, nir_function_impl *impl)
       /* For all other shader types, we need to do the copies right before
        * the jumps to the end block.
        */
-      struct set_entry *block_entry;
       set_foreach(impl->end_block->predecessors, block_entry) {
          struct nir_block *block = (void *)block_entry->key;
          b.cursor = nir_after_block_before_jump(block);