diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_undef.c')
-rw-r--r-- | src/compiler/nir/nir_opt_undef.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c index 87c23b3c63f..f4c41c19c06 100644 --- a/src/compiler/nir/nir_opt_undef.c +++ b/src/compiler/nir/nir_opt_undef.c @@ -79,7 +79,7 @@ nir_opt_undef(nir_shader *shader) nir_foreach_function(shader, function) { if (function->impl) { nir_foreach_block(block, function->impl) { - nir_foreach_instr_safe(block, instr) { + nir_foreach_instr_safe(instr, block) { if (instr->type == nir_instr_type_alu) if (opt_undef_alu(nir_instr_as_alu(instr))) progress = true; |