mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Report all stack errors in the EVM code transform.
This commit is contained in:
committed by
chriseth
parent
f9753a5101
commit
579e4b5a69
@@ -231,18 +231,12 @@ void CodeGenerator::assemble(
|
||||
_identifierAccess,
|
||||
_useNamedLabelsForFunctions
|
||||
);
|
||||
try
|
||||
{
|
||||
transform(_parsedData);
|
||||
}
|
||||
catch (StackTooDeepError const& _e)
|
||||
{
|
||||
transform(_parsedData);
|
||||
if (!transform.stackErrors().empty())
|
||||
assertThrow(
|
||||
false,
|
||||
langutil::StackTooDeepError,
|
||||
"Stack too deep when compiling inline assembly" +
|
||||
(_e.comment() ? ": " + *_e.comment() : ".")
|
||||
(transform.stackErrors().front().comment() ? ": " + *transform.stackErrors().front().comment() : ".")
|
||||
);
|
||||
}
|
||||
yulAssert(transform.stackErrors().empty(), "Stack errors present but not thrown.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user