summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_sweep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/nir/nir_sweep.c')
-rw-r--r--src/glsl/nir/nir_sweep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_sweep.c b/src/glsl/nir/nir_sweep.c
index b6ce43b5224..5a22f509f50 100644
--- a/src/glsl/nir/nir_sweep.c
+++ b/src/glsl/nir/nir_sweep.c
@@ -155,6 +155,8 @@ nir_sweep(nir_shader *nir)
ralloc_adopt(rubbish, nir);
ralloc_steal(nir, (char *)nir->info.name);
+ if (nir->info.label)
+ ralloc_steal(nir, (char *)nir->info.label);
/* Variables and registers are not dead. Steal them back. */
steal_list(nir, nir_variable, &nir->uniforms);