diff options
author | Christian Parpart <christian@ethereum.org> | 2019-01-09 21:05:03 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2019-01-16 21:58:59 +0800 |
commit | 065c3c87af0cd4f620d929a01b2902edf6c5892d (patch) | |
tree | cb33b216ddec2415c6cde661fe9cc90326123c48 /libyul/optimiser/ExpressionSplitter.cpp | |
parent | 778b14de260a7eeaea88867e39cfc226f1494e63 (diff) | |
download | dexon-solidity-065c3c87af0cd4f620d929a01b2902edf6c5892d.tar.gz dexon-solidity-065c3c87af0cd4f620d929a01b2902edf6c5892d.tar.zst dexon-solidity-065c3c87af0cd4f620d929a01b2902edf6c5892d.zip |
libyul: changing some AST members from shared_ptr<> to unique_ptr<>
* Some spaces look a little more verbose now, but that shouln't be a problem as it also should raise readability, too.
* This makes some use of return-value-optimizations also.
Diffstat (limited to 'libyul/optimiser/ExpressionSplitter.cpp')
-rw-r--r-- | libyul/optimiser/ExpressionSplitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/optimiser/ExpressionSplitter.cpp b/libyul/optimiser/ExpressionSplitter.cpp index 334e33f4..2f80fc32 100644 --- a/libyul/optimiser/ExpressionSplitter.cpp +++ b/libyul/optimiser/ExpressionSplitter.cpp @@ -106,7 +106,7 @@ void ExpressionSplitter::outlineExpression(Expression& _expr) m_statementsToPrefix.emplace_back(VariableDeclaration{ location, {{TypedName{location, var, {}}}}, - make_shared<Expression>(std::move(_expr)) + make_unique<Expression>(std::move(_expr)) }); _expr = Identifier{location, var}; } |