diff options
Diffstat (limited to 'gcc/hash-table.h')
-rw-r--r-- | gcc/hash-table.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/hash-table.h b/gcc/hash-table.h index a1423c7..32f3a63 100644 --- a/gcc/hash-table.h +++ b/gcc/hash-table.h @@ -912,6 +912,12 @@ hash_table<Descriptor, Lazy, Allocator> if (Lazy && m_entries == NULL) m_entries = alloc_entries (size); + +#if CHECKING_P + if (m_sanitize_eq_and_hash) + verify (comparable, hash); +#endif + value_type *entry = &m_entries[index]; if (is_empty (*entry) || (!is_deleted (*entry) && Descriptor::equal (*entry, comparable))) @@ -928,13 +934,7 @@ hash_table<Descriptor, Lazy, Allocator> entry = &m_entries[index]; if (is_empty (*entry) || (!is_deleted (*entry) && Descriptor::equal (*entry, comparable))) - { -#if CHECKING_P - if (m_sanitize_eq_and_hash) - verify (comparable, hash); -#endif - return *entry; - } + return *entry; } } |