aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-24 05:58:37 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-24 18:58:49 +0800
commit74d41ad25fa53d3ac2e34bb082b467cb7dc56b99 (patch)
treef247068cca1d11bd5370d05fb085c36bfb173a3f /libsolidity
parentcf639f48f2e7be43ac47fda6d7dec765ed0893e4 (diff)
downloaddexon-solidity-74d41ad25fa53d3ac2e34bb082b467cb7dc56b99.tar.gz
dexon-solidity-74d41ad25fa53d3ac2e34bb082b467cb7dc56b99.tar.zst
dexon-solidity-74d41ad25fa53d3ac2e34bb082b467cb7dc56b99.zip
Fix scope assert in AsmAnalyzer
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index babb93b4..65b935f2 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -406,6 +406,7 @@ bool AsmAnalyzer::expectDeposit(int const _deposit, int const _oldHeight, Source
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);
solAssert(scopePtr, "Scope requested but not present.");
return *scopePtr;