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