@@ -63,8 +63,8 @@ struct CopyTranslate: public yul::ASTCopier
6363{
6464 using ExternalRefsMap = std::map<yul::Identifier const *, InlineAssemblyAnnotation::ExternalIdentifierInfo>;
6565
66- CopyTranslate (yul::Dialect const & _dialect, IRGenerationContext& _context, ExternalRefsMap const & _references):
67- m_dialect (_dialect), m_context(_context), m_references(_references) {}
66+ CopyTranslate (IRGenerationContext& _context, ExternalRefsMap const & _references):
67+ m_context (_context), m_references(_references) {}
6868
6969 using ASTCopier::operator ();
7070
@@ -84,10 +84,7 @@ struct CopyTranslate: public yul::ASTCopier
8484 // from the Yul dialect we are compiling to. So we are assuming here that the builtin
8585 // functions are identical. This should not be a problem for now since everything
8686 // is EVM anyway.
87- if (m_dialect.findBuiltin (_name.str ()))
88- return _name;
89- else
90- return yul::YulName{" usr$" + _name.str ()};
87+ return yul::YulName{" usr$" + _name.str ()};
9188 }
9289
9390 yul::Identifier translate (yul::Identifier const & _identifier) override
@@ -209,8 +206,6 @@ struct CopyTranslate: public yul::ASTCopier
209206 return yul::Identifier{_identifier.debugData , yul::YulName{value}};
210207 }
211208
212-
213- yul::Dialect const & m_dialect;
214209 IRGenerationContext& m_context;
215210 ExternalRefsMap const & m_references;
216211};
@@ -2294,7 +2289,7 @@ bool IRGeneratorForStatements::visit(InlineAssembly const& _inlineAsm)
22942289 setLocation (_inlineAsm);
22952290 if (*_inlineAsm.annotation ().hasMemoryEffects && !_inlineAsm.annotation ().markedMemorySafe )
22962291 m_context.setMemoryUnsafeInlineAssemblySeen ();
2297- CopyTranslate bodyCopier{_inlineAsm. dialect (), m_context, _inlineAsm.annotation ().externalReferences };
2292+ CopyTranslate bodyCopier{m_context, _inlineAsm.annotation ().externalReferences };
22982293
22992294 yul::Statement modified = bodyCopier (_inlineAsm.operations ().root ());
23002295
0 commit comments