mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Implement cxx20 polyfill and replace InvertibleMap entirely.
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user