Skip to content

Commit efc0060

Browse files
Update libyul/optimiser/VarNameCleaner.cpp
Co-authored-by: Nikola Matić <nikola.matic@ethereum.org>
1 parent fa50de7 commit efc0060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libyul/optimiser/VarNameCleaner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ YulName VarNameCleaner::findCleanName(YulName const& _name) const
104104

105105
// Use a per-base-name counter to avoid O(n²) probing when many
106106
// variables share the same stripped base name.
107-
size_t& nextSuffix = m_nextSuffix[newName];
107+
size_t& nextSuffix = m_nextSuffix.at(newName);
108108
if (nextSuffix == 0)
109109
nextSuffix = 1;
110110
for (; nextSuffix < std::numeric_limits<size_t>::max(); ++nextSuffix)

0 commit comments

Comments
 (0)