mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Recommend via-ir whenever a stack too deep error is encountered.
This commit is contained in:
@@ -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() : ".")
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user