aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Parpart <christian@parpart.family>2019-01-11 20:42:57 +0800
committerGitHub <noreply@github.com>2019-01-11 20:42:57 +0800
commit94688d2fa2de039a6d422f48c8f0d819eeaecafa (patch)
treee6ea4f587e006c433b93f69d87e3bbf766d31d57
parente63aa03791a1e30170347129ca1774bfeb460949 (diff)
parent5a99623fec7d03b5bd4158cb3cf58e95fe46359b (diff)
downloaddexon-solidity-94688d2fa2de039a6d422f48c8f0d819eeaecafa.tar.gz
dexon-solidity-94688d2fa2de039a6d422f48c8f0d819eeaecafa.tar.zst
dexon-solidity-94688d2fa2de039a6d422f48c8f0d819eeaecafa.zip
Merge pull request #5777 from ethereum/windowsCodeSizeFix
Avoid redundant copy of Block due to implicit conversion to Statement in CodeSize visit.
-rw-r--r--libyul/optimiser/Metrics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/optimiser/Metrics.cpp b/libyul/optimiser/Metrics.cpp
index fb275cc3..df919682 100644
--- a/libyul/optimiser/Metrics.cpp
+++ b/libyul/optimiser/Metrics.cpp
@@ -48,7 +48,7 @@ size_t CodeSize::codeSize(Expression const& _expression)
size_t CodeSize::codeSize(Block const& _block)
{
CodeSize cs;
- cs.visit(_block);
+ cs(_block);
return cs.m_size;
}