util: use C99 declaration in the for-loop set_foreach() macro

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Eric Engestrom
2018-10-20 18:00:09 +01:00
committed by Eric Engestrom
parent bb84fa146f
commit e27902a261
24 changed files with 4 additions and 40 deletions

View File

@@ -40,7 +40,6 @@ find_continue_block(nir_loop *loop)
assert(header_block->predecessors->entries == 2);
struct set_entry *pred_entry;
set_foreach(header_block->predecessors, pred_entry) {
if (pred_entry->key != prev_block)
return (nir_block*)pred_entry->key;