check symbol presence using stable name pointer

This commit is contained in:
Nikita Smith
2025-06-06 08:50:25 -07:00
committed by Ryan Fleury
parent 5fd06f4466
commit 75d02f1c1e
+3 -5
View File
@@ -482,11 +482,9 @@ lnk_symbol_hash_trie_search(LNK_SymbolHashTrie *trie, U64 hash, String8 name)
if (curr == 0) {
break;
}
if (curr->symbol) {
if (str8_match(curr->symbol->name, name, 0)) {
result = curr;
break;
}
if (curr->name && str8_match(*curr->name, name, 0)) {
result = curr;
break;
}
curr_ptr = curr->child + (h >> 62);
}