Recommend via-ir whenever a stack too deep error is encountered.

This commit is contained in:
hrkrshnn
2022-05-05 19:22:03 +02:00
parent 1dba6aafe4
commit 5ae17c8e65
11 changed files with 59 additions and 20 deletions
+3 -1
View File
@@ -26,6 +26,8 @@
#include <libyul/AST.h>
#include <libyul/AsmAnalysisInfo.h>
#include <libsolutil/StackTooDeepString.h>
using namespace std;
using namespace solidity;
using namespace solidity::yul;
@@ -61,7 +63,7 @@ void CodeGenerator::assemble(
assertThrow(
false,
langutil::StackTooDeepError,
"Stack too deep when compiling inline assembly" +
util::stackTooDeepString + " When compiling inline assembly" +
(transform.stackErrors().front().comment() ? ": " + *transform.stackErrors().front().comment() : ".")
);
}