Throw exception to allow fuzzer to report which file it failed on.

This commit is contained in:
chriseth
2019-04-04 14:05:38 +02:00
parent 3795569da6
commit ef413bb0b3
3 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -125,12 +125,12 @@ Allowed options)",
else
FuzzerUtil::testCompiler(input, optimize, quiet);
}
catch (exception const& _exc)
catch (...)
{
retResult = 1;
if (inputFile.size() == 0)
throw _exc;
throw;
cerr << "Fuzzer "
<< (optimize ? "" : "(without optimizer) ")