diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-06 15:56:27 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-11 00:39:38 +0800 |
commit | b750ca9741aba47cc8ba650a04dd620725ed4610 (patch) | |
tree | 177c1c511009e86169d67554ab5c252f8e61de2a /libsolidity/codegen/CompilerUtils.cpp | |
parent | 9d895e002d0e5e1e3435d03ac82277caa397bbec (diff) | |
download | dexon-solidity-b750ca9741aba47cc8ba650a04dd620725ed4610.tar.gz dexon-solidity-b750ca9741aba47cc8ba650a04dd620725ed4610.tar.zst dexon-solidity-b750ca9741aba47cc8ba650a04dd620725ed4610.zip |
Add more tests and assertions
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.cpp')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index 92c45227..5adce4a0 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -1172,6 +1172,7 @@ void CompilerUtils::popStackSlots(size_t _amount) void CompilerUtils::popAndJump(unsigned _toHeight, eth::AssemblyItem const& _jumpTo) { + solAssert(m_context.stackHeight() >= _toHeight, ""); unsigned amount = m_context.stackHeight() - _toHeight; popStackSlots(amount); m_context.appendJumpTo(_jumpTo); |