aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-07-06 15:56:27 +0800
committerLeonardo Alt <leo@ethereum.org>2018-07-11 00:39:38 +0800
commitb750ca9741aba47cc8ba650a04dd620725ed4610 (patch)
tree177c1c511009e86169d67554ab5c252f8e61de2a /libsolidity/codegen/CompilerUtils.cpp
parent9d895e002d0e5e1e3435d03ac82277caa397bbec (diff)
downloaddexon-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.cpp1
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);