fixup! Change semantic tests to use the proper via IR pipeline, without rerunning on exceptions

This commit is contained in:
Kamil Śliwak 2023-08-22 20:32:12 +02:00
parent a4d777643d
commit 1bb596096b

View File

@ -669,14 +669,15 @@ void SemanticTest::printUpdatedExpectations(ostream& _stream, string const&) con
void SemanticTest::printUpdatedSettings(ostream& _stream, string const& _linePrefix) void SemanticTest::printUpdatedSettings(ostream& _stream, string const& _linePrefix)
{ {
auto& settings = m_reader.settings(); auto& settings = m_reader.settings();
if (settings.empty()) if (settings.empty() && m_requiresYulOptimizer == RequiresYulOptimizer::False)
return; return;
_stream << _linePrefix << "// ====" << endl; _stream << _linePrefix << "// ====" << endl;
if (m_requiresYulOptimizer != RequiresYulOptimizer::False)
_stream << _linePrefix << "// requiresYulOptimizer: " << m_requiresYulOptimizer << endl;
for (auto const& [settingName, settingValue]: settings) for (auto const& [settingName, settingValue]: settings)
if (settingName == "requiresYulOptimizer") if (settingName != "requiresYulOptimizer")
_stream << _linePrefix << "// " << settingName << ": " << m_requiresYulOptimizer << endl;
else
_stream << _linePrefix << "// " << settingName << ": " << settingValue<< endl; _stream << _linePrefix << "// " << settingName << ": " << settingValue<< endl;
} }