Catch yul stack too deep error.

This commit is contained in:
Bhargava Shastry 2021-02-25 13:59:52 +01:00
parent ca53394832
commit f8775449c2

View File

@ -29,6 +29,8 @@
#include <liblangutil/Exceptions.h>
#include <libyul/backends/evm/EVMCodeTransform.h>
#include <sstream>
using namespace std;
@ -121,6 +123,11 @@ void FuzzerUtil::testCompiler(
catch (StackTooDeepError const&)
{
}
// If _compileViaYul is true, the yul
// codegen may throw StackTooDeepError.
catch (yul::StackTooDeepError const&)
{
}
}
void FuzzerUtil::runCompiler(string const& _input, bool _quiet)