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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user