summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_constant_folding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_constant_folding.c')
-rw-r--r--src/compiler/nir/nir_opt_constant_folding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c
index a3adaec..b10bb23 100644
--- a/src/compiler/nir/nir_opt_constant_folding.c
+++ b/src/compiler/nir/nir_opt_constant_folding.c
@@ -177,7 +177,7 @@ constant_fold_block(nir_block *block, void *mem_ctx)
{
bool progress = false;
- nir_foreach_instr_safe(block, instr) {
+ nir_foreach_instr_safe(instr, block) {
switch (instr->type) {
case nir_instr_type_alu:
progress |= constant_fold_alu_instr(nir_instr_as_alu(instr), mem_ctx);