Yul Backend: Get rid of heuristics for finding the matching runtime

This commit is contained in:
Mathias Baumann
2021-02-09 14:50:25 +01:00
parent d393624384
commit e4f1257c83
13 changed files with 51 additions and 21 deletions
+2 -1
View File
@@ -42,10 +42,11 @@ void EVMObjectCompiler::run(Object& _object, bool _optimize)
BuiltinContext context;
context.currentObject = &_object;
for (auto const& subNode: _object.subObjects)
if (auto* subObject = dynamic_cast<Object*>(subNode.get()))
{
auto subAssemblyAndID = m_assembly.createSubAssembly();
auto subAssemblyAndID = m_assembly.createSubAssembly(subObject->name.str());
context.subIDs[subObject->name] = subAssemblyAndID.second;
subObject->subId = subAssemblyAndID.second;
compile(*subObject, *subAssemblyAndID.first, m_dialect, m_evm15, _optimize);