Reset Yul string repository before each compilation.

This commit is contained in:
Bhargava Shastry
2019-05-28 13:12:39 +02:00
committed by chriseth
parent b95eebee1c
commit dbae0fa939
19 changed files with 89 additions and 30 deletions
+4
View File
@@ -22,6 +22,7 @@
#pragma once
#include <libyul/optimiser/ASTWalker.h>
#include <libyul/AsmData.h>
#include <map>
#include <set>
@@ -51,6 +52,9 @@ public:
private:
void setValue(YulString _name, Expression const* _value);
/// Special expression whose address will be used in m_values.
/// YulString does not need to be reset because SSAValueTracker is short-lived.
Expression const m_zero{Literal{{}, LiteralKind::Number, YulString{"0"}, {}}};
std::map<YulString, Expression const*> m_values;
};