Update Dockerfiles and CI scripts to Ubuntu 20.04 and simplify them.

This commit is contained in:
Daniel Kirchner
2020-05-11 17:35:01 +02:00
parent debee799dc
commit c1ed5bbb0f
12 changed files with 121 additions and 207 deletions
@@ -306,7 +306,7 @@ void RedundantAssignEliminator::finalize(YulString _variable, RedundantAssignEli
void AssignmentRemover::operator()(Block& _block)
{
boost::range::remove_erase_if(_block.statements, [=](Statement const& _statement) -> bool {
boost::range::remove_erase_if(_block.statements, [&](Statement const& _statement) -> bool {
return holds_alternative<Assignment>(_statement) && m_toRemove.count(&std::get<Assignment>(_statement));
});
+1 -1
View File
@@ -86,7 +86,7 @@ void UnusedPruner::operator()(Block& _block)
if (std::none_of(
varDecl.variables.begin(),
varDecl.variables.end(),
[=](TypedName const& _typedName) { return used(_typedName.name); }
[&](TypedName const& _typedName) { return used(_typedName.name); }
))
{
if (!varDecl.value)