diff options
author | chriseth <chris@ethereum.org> | 2017-05-24 20:19:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 20:19:08 +0800 |
commit | 6873c936edbd98d446f2f797b177594e6ddfceb2 (patch) | |
tree | a662c583376aca6a922d9247795a8ba98566553a /libsolidity | |
parent | e980812fabe46bb11f486bf322585ae1ce359750 (diff) | |
parent | 74d41ad25fa53d3ac2e34bb082b467cb7dc56b99 (diff) | |
download | dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar.gz dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar.bz2 dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar.lz dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar.xz dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.tar.zst dexon-solidity-6873c936edbd98d446f2f797b177594e6ddfceb2.zip |
Merge pull request #2294 from ethereum/inlineasm
Fix scope assert in AsmAnalyzer
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 1 |
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; |