mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11109 from ethereum/inlinerHeuristicsFix
Fix small bug in inliner heuristics.
This commit is contained in:
commit
7170c8ac60
@ -183,7 +183,7 @@ bool Inliner::shouldInlineFullFunctionBody(size_t _tag, ranges::span<AssemblyIte
|
||||
// the heuristics is optimistic.
|
||||
if (m_tagsReferencedFromOutside.count(_tag))
|
||||
inlinedDepositCost += GasMeter::dataGas(
|
||||
uninlinedFunctionPattern.size() + functionBodySize,
|
||||
codeSize(uninlinedFunctionPattern) + functionBodySize,
|
||||
m_isCreation,
|
||||
m_evmVersion
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user