summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_locals_to_regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_lower_locals_to_regs.c')
-rw-r--r--src/compiler/nir/nir_lower_locals_to_regs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_locals_to_regs.c b/src/compiler/nir/nir_lower_locals_to_regs.c
index f1ad171..7c52c16 100644
--- a/src/compiler/nir/nir_lower_locals_to_regs.c
+++ b/src/compiler/nir/nir_lower_locals_to_regs.c
@@ -390,7 +390,7 @@ nir_lower_locals_to_regs(nir_shader *shader)
{
bool progress = false;
- nir_foreach_function(shader, function) {
+ nir_foreach_function(function, shader) {
if (function->impl)
progress = nir_lower_locals_to_regs_impl(function->impl) || progress;
}