aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/optimiser/Rematerialiser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libyul/optimiser/Rematerialiser.cpp')
-rw-r--r--libyul/optimiser/Rematerialiser.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libyul/optimiser/Rematerialiser.cpp b/libyul/optimiser/Rematerialiser.cpp
index 247defda..56f6e99c 100644
--- a/libyul/optimiser/Rematerialiser.cpp
+++ b/libyul/optimiser/Rematerialiser.cpp
@@ -30,12 +30,13 @@ using namespace std;
using namespace dev;
using namespace yul;
-void Rematerialiser::run(Block& _ast)
+void Rematerialiser::run(Dialect const& _dialect, Block& _ast)
{
- Rematerialiser{_ast}(_ast);
+ Rematerialiser{_dialect, _ast}(_ast);
}
-Rematerialiser::Rematerialiser(Block& _ast):
+Rematerialiser::Rematerialiser(Dialect const& _dialect, Block& _ast):
+ DataFlowAnalyzer(_dialect),
m_referenceCounts(ReferencesCounter::countReferences(_ast))
{
}