File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ using namespace solidity;
30
30
using namespace solidity ::yul;
31
31
using namespace solidity ::util;
32
32
33
- YulName Disambiguator::translateIdentifier (YulName _originalName)
33
+ YulName Disambiguator::translateIdentifier (YulName const _originalName)
34
34
{
35
- if (m_dialect. findBuiltin (_originalName. str ()) || m_externallyUsedIdentifiers.count (_originalName))
35
+ if (m_externallyUsedIdentifiers.contains (_originalName))
36
36
return _originalName;
37
37
38
38
assertThrow (!m_scopes.empty () && m_scopes.back (), OptimizerException, " " );
39
39
Scope::Identifier const * id = m_scopes.back ()->lookup (_originalName);
40
40
assertThrow (id, OptimizerException, " " );
41
- if (!m_translations.count (id))
41
+ if (!m_translations.contains (id))
42
42
m_translations[id] = m_nameDispenser.newName (_originalName);
43
43
return m_translations.at (id);
44
44
}
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class Disambiguator: public ASTCopier
56
56
void leaveScope (Block const & _block) override ;
57
57
void enterFunction (FunctionDefinition const & _function) override ;
58
58
void leaveFunction (FunctionDefinition const & _function) override ;
59
- YulName translateIdentifier (YulName _name ) override ;
59
+ YulName translateIdentifier (YulName _originalName ) override ;
60
60
61
61
void enterScopeInternal (Scope& _scope);
62
62
void leaveScopeInternal (Scope& _scope);
You can’t perform that action at this time.
0 commit comments