summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_remove_dead_variables.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_remove_dead_variables.c')
-rw-r--r--src/compiler/nir/nir_remove_dead_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_remove_dead_variables.c b/src/compiler/nir/nir_remove_dead_variables.c
index 7395805..22a286f 100644
--- a/src/compiler/nir/nir_remove_dead_variables.c
+++ b/src/compiler/nir/nir_remove_dead_variables.c
@@ -97,7 +97,7 @@ add_var_use_shader(nir_shader *shader, struct set *live)
{
nir_foreach_function(shader, function) {
if (function->impl) {
- nir_foreach_block(function->impl, add_var_use_block, live);
+ nir_foreach_block_call(function->impl, add_var_use_block, live);
}
}
}