nir/sweep: Sweep function parameters
They are no longer in the list of local variables so we need to explicitly sweep them. Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
1be4c61c95
commit
49be812be6
|
@ -119,6 +119,8 @@ sweep_impl(nir_shader *nir, nir_function_impl *impl)
|
|||
ralloc_steal(nir, impl);
|
||||
|
||||
ralloc_steal(nir, impl->params);
|
||||
for (unsigned i = 0; i < impl->num_params; i++)
|
||||
ralloc_steal(nir, impl->params[i]);
|
||||
ralloc_steal(nir, impl->return_var);
|
||||
steal_list(nir, nir_variable, &impl->locals);
|
||||
steal_list(nir, nir_register, &impl->registers);
|
||||
|
|
Loading…
Reference in New Issue