mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix scope assert in AsmAnalyzer
This commit is contained in:
parent
cf639f48f2
commit
74d41ad25f
@ -406,6 +406,7 @@ bool AsmAnalyzer::expectDeposit(int const _deposit, int const _oldHeight, Source
|
|||||||
|
|
||||||
Scope& AsmAnalyzer::scope(Block const* _block)
|
Scope& AsmAnalyzer::scope(Block const* _block)
|
||||||
{
|
{
|
||||||
|
solAssert(m_info.scopes.count(_block) == 1, "Scope requested but not present.");
|
||||||
auto scopePtr = m_info.scopes.at(_block);
|
auto scopePtr = m_info.scopes.at(_block);
|
||||||
solAssert(scopePtr, "Scope requested but not present.");
|
solAssert(scopePtr, "Scope requested but not present.");
|
||||||
return *scopePtr;
|
return *scopePtr;
|
||||||
|
Loading…
Reference in New Issue
Block a user