From 46498abbacb1a59cd37aa54ba5d7b9ca703ae059 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Wed, 12 Apr 2023 12:07:10 -0700 Subject: [PATCH] symbol_table: Don't bother resetting the key on popping scope. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If you made a same-name symbol, then its name was just the name from the parent scope anyway. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Marek Olšák Part-of: --- src/mesa/program/symbol_table.c | 1 - 1 file changed, 1 deletion(-) 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);