mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[yul-phaser] Require specifying weights for Program::codeSize()
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
#include <tools/yulPhaser/ProgramCache.h>
|
||||
|
||||
#include <libyul/optimiser/Metrics.h>
|
||||
|
||||
#include <libyul/optimiser/Suite.h>
|
||||
|
||||
using namespace std;
|
||||
@@ -133,7 +135,7 @@ size_t ProgramCache::calculateTotalCachedCodeSize() const
|
||||
{
|
||||
size_t size = 0;
|
||||
for (auto const& pair: m_entries)
|
||||
size += pair.second.program.codeSize();
|
||||
size += pair.second.program.codeSize(CodeWeights{});
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user