From 0b2a670a949580006cf1a95d26c74caf29e6c96e Mon Sep 17 00:00:00 2001 From: hrkrshnn Date: Sun, 3 Jul 2022 14:03:00 +0200 Subject: [PATCH] Improved stack too deep message when compiled without --optimize --- libyul/backends/evm/EVMCodeTransform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libyul/backends/evm/EVMCodeTransform.cpp b/libyul/backends/evm/EVMCodeTransform.cpp index 531fd1b92..ce5578274 100644 --- a/libyul/backends/evm/EVMCodeTransform.cpp +++ b/libyul/backends/evm/EVMCodeTransform.cpp @@ -26,6 +26,7 @@ #include #include +#include #include @@ -785,7 +786,8 @@ size_t CodeTransform::variableHeightDiff(Scope::Variable const& _var, YulString _varName.str() + " is " + to_string(heightDiff - limit) + - " slot(s) too deep inside the stack." + " slot(s) too deep inside the stack. " + + stackTooDeepString ); m_assembly.markAsInvalid(); return _forSwap ? 2 : 1;