mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Improved stack too deep message when compiled without --optimize
This commit is contained in:
parent
48669b4bec
commit
0b2a670a94
@ -26,6 +26,7 @@
|
|||||||
#include <libyul/Utilities.h>
|
#include <libyul/Utilities.h>
|
||||||
|
|
||||||
#include <libsolutil/Visitor.h>
|
#include <libsolutil/Visitor.h>
|
||||||
|
#include <libsolutil/StackTooDeepString.h>
|
||||||
|
|
||||||
#include <liblangutil/Exceptions.h>
|
#include <liblangutil/Exceptions.h>
|
||||||
|
|
||||||
@ -785,7 +786,8 @@ size_t CodeTransform::variableHeightDiff(Scope::Variable const& _var, YulString
|
|||||||
_varName.str() +
|
_varName.str() +
|
||||||
" is " +
|
" is " +
|
||||||
to_string(heightDiff - limit) +
|
to_string(heightDiff - limit) +
|
||||||
" slot(s) too deep inside the stack."
|
" slot(s) too deep inside the stack. " +
|
||||||
|
stackTooDeepString
|
||||||
);
|
);
|
||||||
m_assembly.markAsInvalid();
|
m_assembly.markAsInvalid();
|
||||||
return _forSwap ? 2 : 1;
|
return _forSwap ? 2 : 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user