From 5a99623fec7d03b5bd4158cb3cf58e95fe46359b Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Fri, 11 Jan 2019 12:47:45 +0100 Subject: Avoid explicit conversion from Block to Statement in CodeSize visit. --- libyul/optimiser/Metrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit