Merge pull request #5628 from ethereum/structuralSimplifierCompilationFix

[Yul] Fix compilation for certain combinations of boost and gcc.
This commit is contained in:
Daniel Kirchner 2018-12-12 12:19:10 +01:00 committed by GitHub
commit 85291bcb2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ void StructuralSimplifier::simplify(std::vector<yul::Statement>& _statements)
if (expressionAlwaysTrue(*_ifStmt.condition))
return {std::move(_ifStmt.body.statements)};
else if (expressionAlwaysFalse(*_ifStmt.condition))
return {{}};
return {vector<Statement>{}};
return {};
},
[](Switch& _switchStmt) -> OptionalStatements {