summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_opt_dead_cf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_opt_dead_cf.c')
-rw-r--r--src/glsl/nir/nir_opt_dead_cf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_opt_dead_cf.c b/src/glsl/nir/nir_opt_dead_cf.c
index 356e926..4cc6798 100644
--- a/src/glsl/nir/nir_opt_dead_cf.c
+++ b/src/glsl/nir/nir_opt_dead_cf.c
@@ -350,9 +350,9 @@ nir_opt_dead_cf(nir_shader *shader)
{
bool progress = false;
- nir_foreach_overload(shader, overload)
- if (overload->impl)
- progress |= opt_dead_cf_impl(overload->impl);
+ nir_foreach_function(shader, function)
+ if (function->impl)
+ progress |= opt_dead_cf_impl(function->impl);
return progress;
}