mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check for scopes in LoadResolver.
This commit is contained in:
parent
eb035147d2
commit
75bed10be5
@ -68,9 +68,11 @@ void LoadResolver::tryResolve(
|
||||
if (_location == StoreLoadLocation::Storage)
|
||||
{
|
||||
if (auto value = util::valueOrNullptr(m_storage, key))
|
||||
_e = Identifier{locationOf(_e), *value};
|
||||
if (inScope(*value))
|
||||
_e = Identifier{locationOf(_e), *value};
|
||||
}
|
||||
else if (m_optimizeMLoad && _location == StoreLoadLocation::Memory)
|
||||
if (auto value = util::valueOrNullptr(m_memory, key))
|
||||
_e = Identifier{locationOf(_e), *value};
|
||||
if (inScope(*value))
|
||||
_e = Identifier{locationOf(_e), *value};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user