CompilerStack: Extend inconsistent error sanity check to cover stopAfter: parsing as well

This commit is contained in:
Kamil Śliwak 2023-06-14 13:02:41 +02:00
parent a15ef59eec
commit b17757ea17

View File

@ -1327,8 +1327,8 @@ Json::Value StandardCompiler::compileSolidity(StandardCompiler::InputsAndSetting
/// Inconsistent state - stop here to receive error reports from users /// Inconsistent state - stop here to receive error reports from users
if ( if (
(compilationFailed || !analysisSuccess) && (compilationFailed || analysisFailed || !parsingSuccess) &&
(errors.empty() && _inputsAndSettings.stopAfter >= CompilerStack::State::AnalysisSuccessful) errors.empty()
) )
return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed."); return formatFatalError(Error::Type::InternalCompilerError, "No error reported, but compilation failed.");