summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_global_vars_to_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_lower_global_vars_to_local.c')
-rw-r--r--src/compiler/nir/nir_lower_global_vars_to_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_global_vars_to_local.c b/src/compiler/nir/nir_lower_global_vars_to_local.c
index e49e67a..e118e04 100644
--- a/src/compiler/nir/nir_lower_global_vars_to_local.c
+++ b/src/compiler/nir/nir_lower_global_vars_to_local.c
@@ -36,7 +36,7 @@ static bool
mark_global_var_uses_block(nir_block *block, nir_function_impl *impl,
struct hash_table *var_func_table)
{
- nir_foreach_instr(block, instr) {
+ nir_foreach_instr(instr, block) {
if (instr->type != nir_instr_type_intrinsic)
continue;