mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
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:
parent
0a400f933f
commit
46498abbac
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue