Report all stack errors in the EVM code transform.

This commit is contained in:
Daniel Kirchner
2020-07-16 17:38:04 +02:00
committed by chriseth
parent f9753a5101
commit 579e4b5a69
5 changed files with 27 additions and 48 deletions
+1 -8
View File
@@ -59,14 +59,7 @@ map<YulString, int> CompilabilityChecker::run(
builtinContext,
_optimizeStackAllocation
);
try
{
transform(*_object.code);
}
catch (StackTooDeepError const&)
{
yulAssert(!transform.stackErrors().empty(), "Got stack too deep exception that was not stored.");
}
transform(*_object.code);
std::map<YulString, int> functions;
for (StackTooDeepError const& error: transform.stackErrors())