fix(kernel/replace_fn): bug in the cache
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
61df118339
commit
7d25158254
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ struct replace_cache {
|
|||
|
||||
expr * find(expr const & e, unsigned offset) {
|
||||
unsigned i = hash(e.hash_alloc(), offset) % m_capacity;
|
||||
if (m_cache[i].m_cell == e.raw())
|
||||
if (m_cache[i].m_cell == e.raw() && m_cache[i].m_offset == offset)
|
||||
return &m_cache[i].m_result;
|
||||
else
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in a new issue