Skip to content

Commit 4c85cb8

Browse files
authored
Merge pull request #13238 from ethereum/improve-stack-too-deep-message
Improved stack too deep message when compiled without --optimize
2 parents 3bc6813 + 0b2a670 commit 4c85cb8

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)