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>
This commit is contained in:
Emma Anholt 2023-04-12 12:07:10 -07:00 committed by Marge Bot
parent 0a400f933f
commit 46498abbac

View file

@ -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);