diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-12 14:51:23 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-12 14:51:23 +0800 |
commit | a18985800f42035cdc3c36555cb927e286ea0d91 (patch) | |
tree | 4e267e45ef25251f999cc12e647c29223b69f014 | |
parent | 1476acb8045033a9a3d2e1a1d13c5aaa8ed6942c (diff) | |
download | dexon-solidity-a18985800f42035cdc3c36555cb927e286ea0d91.tar.gz dexon-solidity-a18985800f42035cdc3c36555cb927e286ea0d91.tar.zst dexon-solidity-a18985800f42035cdc3c36555cb927e286ea0d91.zip |
Fix compilation for certain combinations of boost and gcc.
-rw-r--r-- | libyul/optimiser/StructuralSimplifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/optimiser/StructuralSimplifier.cpp b/libyul/optimiser/StructuralSimplifier.cpp index 5fcfdae4..bdf4cb2a 100644 --- a/libyul/optimiser/StructuralSimplifier.cpp +++ b/libyul/optimiser/StructuralSimplifier.cpp @@ -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 { |