@@ -46,7 +46,6 @@ SyntaxTest::SyntaxTest(
46
46
m_minSeverity(_minSeverity)
47
47
{
48
48
m_optimiseYul = m_reader.boolSetting (" optimize-yul" , true );
49
- m_viaIr = m_reader.boolSetting (" via-ir" , false );
50
49
}
51
50
52
51
void SyntaxTest::setupCompiler (CompilerStack& _compiler)
@@ -59,7 +58,6 @@ void SyntaxTest::setupCompiler(CompilerStack& _compiler)
59
58
OptimiserSettings::full () :
60
59
OptimiserSettings::minimal ()
61
60
);
62
- _compiler.setViaIR (m_viaIr);
63
61
_compiler.setMetadataFormat (CompilerStack::MetadataFormat::NoMetadata);
64
62
_compiler.setMetadataHash (CompilerStack::MetadataHash::None);
65
63
}
@@ -69,13 +67,13 @@ void SyntaxTest::parseAndAnalyze()
69
67
try
70
68
{
71
69
runFramework (withPreamble (m_sources.sources ), PipelineStage::Compilation);
72
- if (!pipelineSuccessful () && stageSuccessful (PipelineStage::Analysis))
70
+ if (!pipelineSuccessful () && stageSuccessful (PipelineStage::Analysis) && ! compiler (). isExperimentalAnalysis () )
73
71
{
74
- ErrorList const & errors = compiler ().errors ();
75
- auto codeGeneretionErrorCount = count_if (errors.cbegin (), errors.cend (), [](auto const & error) {
72
+ ErrorList const & errors = compiler ().errors ();
73
+ auto codeGeneretionErrorCount = count_if (errors.cbegin (), errors.cend (), [](auto const & error) {
76
74
return error->type () == Error::Type::CodeGenerationError;
77
75
});
78
- auto errorCount = count_if (errors.cbegin (), errors.cend (), [](auto const & error) {
76
+ auto errorCount = count_if (errors.cbegin (), errors.cend (), [](auto const & error) {
79
77
return Error::isError (error->type ());
80
78
});
81
79
// failing compilation after successful analysis is a rare case,
0 commit comments