summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_dce.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_opt_dce.c')
-rw-r--r--src/compiler/nir/nir_opt_dce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_opt_dce.c b/src/compiler/nir/nir_opt_dce.c
index f7dd7be..0aeb08a 100644
--- a/src/compiler/nir/nir_opt_dce.c
+++ b/src/compiler/nir/nir_opt_dce.c
@@ -167,7 +167,7 @@ bool
nir_opt_dce(nir_shader *shader)
{
bool progress = false;
- nir_foreach_function(shader, function) {
+ nir_foreach_function(function, shader) {
if (function->impl && nir_opt_dce_impl(function->impl))
progress = true;
}