Avoid explicit conversion from Block to Statement in CodeSize visit.

This commit is contained in:
Daniel Kirchner 2019-01-11 12:47:45 +01:00
parent e63aa03791
commit 5a99623fec

View File

@ -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;
}