Skip to content

Commit 0b2a670

Browse files
committed
Improved stack too deep message when compiled without --optimize
1 parent 48669b4 commit 0b2a670

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libyul/backends/evm/EVMCodeTransform.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <libyul/Utilities.h>
2727

2828
#include <libsolutil/Visitor.h>
29+
#include <libsolutil/StackTooDeepString.h>
2930

3031
#include <liblangutil/Exceptions.h>
3132

@@ -785,7 +786,8 @@ size_t CodeTransform::variableHeightDiff(Scope::Variable const& _var, YulString
785786
_varName.str() +
786787
" is " +
787788
to_string(heightDiff - limit) +
788-
" slot(s) too deep inside the stack."
789+
" slot(s) too deep inside the stack. " +
790+
stackTooDeepString
789791
);
790792
m_assembly.markAsInvalid();
791793
return _forSwap ? 2 : 1;

0 commit comments

Comments
 (0)