diff options
Diffstat (limited to 'src/compiler/nir/nir_opt_global_to_local.c')
-rw-r--r-- | src/compiler/nir/nir_opt_global_to_local.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_global_to_local.c b/src/compiler/nir/nir_opt_global_to_local.c index 3555c7b..64d689e 100644 --- a/src/compiler/nir/nir_opt_global_to_local.c +++ b/src/compiler/nir/nir_opt_global_to_local.c @@ -34,7 +34,7 @@ global_to_local(nir_register *reg) assert(reg->is_global); - nir_foreach_def(reg, def_dest) { + nir_foreach_def(def_dest, reg) { nir_instr *instr = def_dest->reg.parent_instr; nir_function_impl *instr_impl = nir_cf_node_get_function(&instr->block->cf_node); |