Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Apr 22, 2024
1 parent f632578 commit b93d4ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libyul/backends/evm/StackShuffle.h
Expand Up @@ -58,7 +58,7 @@ class IndexingMap
template<typename MapType, typename ElementType>
size_t getIndex(MapType&& _map, ElementType&& _element)
{
auto [element, newlyInserted] = _map.emplace(std::make_pair(_element, size_t(0u)));
auto [element, newlyInserted] = _map.emplace(_element, size_t(0u));
if (newlyInserted)
{
element->second = m_indexedSlots.size();
Expand Down Expand Up @@ -152,7 +152,10 @@ class SymbolicStackShuffleOperations : public ShuffleOperations
}

for (auto&& slot: m_targetStack)
{
yulAssert(m_operationOutputs.count(slot) || m_generateSlotOnTheFly(slot));
++multiplicity[slot];
}
m_multiplicity = multiplicity;
}

Expand Down

0 comments on commit b93d4ac

Please sign in to comment.