diff options
author | Jason Ekstrand <[email protected]> | 2016-03-25 11:10:30 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-28 18:32:48 -0700 |
commit | 49be812be60e7fab949bcd352583649a1dbf06b4 (patch) | |
tree | 3f631bb079deb87fa532ed2ca8ce1bc51cc03309 | |
parent | 1be4c61c957d656d0d874b82779b4016a8bb03fd (diff) |
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 <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_sweep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_sweep.c b/src/compiler/nir/nir_sweep.c index 5c62154ec7f..b22f0f56569 100644 --- a/src/compiler/nir/nir_sweep.c +++ b/src/compiler/nir/nir_sweep.c @@ -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); |