aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-06 07:04:55 +0800
committerchriseth <c@ethdev.com>2015-06-07 18:51:15 +0800
commitc2a9419e495e931a825e8146aec49ffc34e44954 (patch)
treea6674b16ad95fe108794e305abddc7981c1bed79 /ExpressionCompiler.cpp
parentb51ef4a357b4b60fc01038b0e97280fb9ecca01e (diff)
downloaddexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.tar.gz
dexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.tar.zst
dexon-solidity-c2a9419e495e931a825e8146aec49ffc34e44954.zip
Improved "Stack too deep" error message.
Closes #2080.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index bac967d8..ba80a8ea 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -263,7 +263,7 @@ bool ExpressionCompiler::visit(Assignment const& _assignment)
appendOrdinaryBinaryOperatorCode(Token::AssignmentToBinaryOp(op), *_assignment.getType());
if (lvalueSize > 0)
{
- solAssert(itemSize + lvalueSize <= 16, "Stack too deep.");
+ solAssert(itemSize + lvalueSize <= 16, "Stack too deep, try removing local variables.");
// value [lvalue_ref] updated_value
for (unsigned i = 0; i < itemSize; ++i)
m_context << eth::swapInstruction(itemSize + lvalueSize) << eth::Instruction::POP;