From 74d41ad25fa53d3ac2e34bb082b467cb7dc56b99 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 23 May 2017 22:58:37 +0100 Subject: Fix scope assert in AsmAnalyzer --- libsolidity/inlineasm/AsmAnalysis.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity') 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; -- cgit