Implement cxx20 polyfill and replace InvertibleMap entirely.

This commit is contained in:
Daniel Kirchner
2021-01-12 21:40:40 +01:00
parent 625d402dbb
commit 7fe03cbab0
7 changed files with 99 additions and 131 deletions
+2 -2
View File
@@ -67,10 +67,10 @@ void LoadResolver::tryResolve(
YulString key = std::get<Identifier>(_arguments.at(0)).name;
if (_location == StoreLoadLocation::Storage)
{
if (auto value = m_storage.fetch(key))
if (auto value = util::valueOrNullptr(m_storage, key))
_e = Identifier{locationOf(_e), *value};
}
else if (m_optimizeMLoad && _location == StoreLoadLocation::Memory)
if (auto value = m_memory.fetch(key))
if (auto value = util::valueOrNullptr(m_memory, key))
_e = Identifier{locationOf(_e), *value};
}