Skip to content

Commit

Permalink
Merge pull request #11109 from ethereum/inlinerHeuristicsFix
Browse files Browse the repository at this point in the history
Fix small bug in inliner heuristics.
  • Loading branch information
ekpyron authored Mar 16, 2021
2 parents ae1b321 + d528187 commit 7170c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libevmasm/Inliner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 7170c8a

Please sign in to comment.