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