diff options
author | Emma Anholt <emma@anholt.net> | 2023-04-12 12:07:10 -0700 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-04-15 18:33:25 +0000 |
commit | 46498abbacb1a59cd37aa54ba5d7b9ca703ae059 (patch) | |
tree | 05ff7113cc21867aa6d76299839c19eaa25e3a6d /src/mesa | |
parent | 0a400f933fa0962f4a709bec3f4d10cbcffb3614 (diff) | |
download | mesa-46498abbacb1a59cd37aa54ba5d7b9ca703ae059.tar.gz |
symbol_table: Don't bother resetting the key on popping scope.
If you made a same-name symbol, then its name was just the name from the
parent scope anyway.
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22451>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/program/symbol_table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/program/symbol_table.c b/src/mesa/program/symbol_table.c index 7df2713908b..e988af25a22 100644 --- a/src/mesa/program/symbol_table.c +++ b/src/mesa/program/symbol_table.c @@ -102,7 +102,6 @@ _mesa_symbol_table_pop_scope(struct _mesa_symbol_table *table) /* If there is a symbol with this name in an outer scope update * the hash table to point to it. */ - hte->key = sym->next_with_same_name->name; hte->data = sym->next_with_same_name; } else { _mesa_hash_table_remove(table->ht, hte); |