diff options
author | chriseth <chris@ethereum.org> | 2019-01-17 00:26:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 00:26:09 +0800 |
commit | 78e764ef175d4755c37fd56cbd7fe161c178fd11 (patch) | |
tree | cb33b216ddec2415c6cde661fe9cc90326123c48 /libyul/optimiser/DataFlowAnalyzer.cpp | |
parent | 778b14de260a7eeaea88867e39cfc226f1494e63 (diff) | |
parent | 065c3c87af0cd4f620d929a01b2902edf6c5892d (diff) | |
download | dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar.gz dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar.bz2 dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar.lz dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar.xz dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.tar.zst dexon-solidity-78e764ef175d4755c37fd56cbd7fe161c178fd11.zip |
Merge pull request #5694 from ethereum/yul-ast-unique_ptr
[libyul] use unique_ptr in AST over shared_ptr
Diffstat (limited to 'libyul/optimiser/DataFlowAnalyzer.cpp')
-rw-r--r-- | libyul/optimiser/DataFlowAnalyzer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libyul/optimiser/DataFlowAnalyzer.cpp b/libyul/optimiser/DataFlowAnalyzer.cpp index e97bcdc4..b4f2d1f9 100644 --- a/libyul/optimiser/DataFlowAnalyzer.cpp +++ b/libyul/optimiser/DataFlowAnalyzer.cpp @@ -51,8 +51,10 @@ void DataFlowAnalyzer::operator()(VariableDeclaration& _varDecl) for (auto const& var: _varDecl.variables) names.emplace(var.name); m_variableScopes.back().variables += names; + if (_varDecl.value) visit(*_varDecl.value); + handleAssignment(names, _varDecl.value.get()); } |