aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2019-01-11 19:47:45 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2019-01-11 19:52:24 +0800
commit5a99623fec7d03b5bd4158cb3cf58e95fe46359b (patch)
treee6ea4f587e006c433b93f69d87e3bbf766d31d57
parente63aa03791a1e30170347129ca1774bfeb460949 (diff)
downloaddexon-solidity-5a99623fec7d03b5bd4158cb3cf58e95fe46359b.tar.gz
dexon-solidity-5a99623fec7d03b5bd4158cb3cf58e95fe46359b.tar.zst
dexon-solidity-5a99623fec7d03b5bd4158cb3cf58e95fe46359b.zip
Avoid explicit conversion from Block 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;
}