mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Avoid explicit conversion from Block to Statement in CodeSize visit.
This commit is contained in:
parent
e63aa03791
commit
5a99623fec
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user