Module: Mesa
Branch: main
Commit: 46498abbacb1a59cd37aa54ba5d7b9ca703ae059
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=46498abbacb1a59cd37aa54ba5d7b9ca703ae059

Author: Emma Anholt <[email protected]>
Date:   Wed Apr 12 12:07:10 2023 -0700

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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22451>

---

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

Reply via email to