Merge pull request #14188 from ethereum/fuzz-ir-pipeline

Make use of IR codegen pipeline and selectively report stack too deep…
This commit is contained in:
Nikola Matić 2023-05-06 13:04:13 +02:00 committed by GitHub
commit 41742c5410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ void FuzzerUtil::testCompiler(
compiler.setSources(_input); compiler.setSources(_input);
compiler.setEVMVersion(evmVersion); compiler.setEVMVersion(evmVersion);
compiler.setOptimiserSettings(optimiserSettings); compiler.setOptimiserSettings(optimiserSettings);
compiler.enableIRGeneration(_compileViaYul); compiler.setViaIR(_compileViaYul);
try try
{ {
compiler.compile(); compiler.compile();
@ -137,6 +137,8 @@ void FuzzerUtil::testCompiler(
} }
catch (StackTooDeepError const&) catch (StackTooDeepError const&)
{ {
if (_optimize && _compileViaYul)
throw;
} }
} }