mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace boost::variant by std::variant in libyul
This commit is contained in:
@@ -33,7 +33,7 @@ using namespace yul;
|
||||
void yul::removeEmptyBlocks(Block& _block)
|
||||
{
|
||||
auto isEmptyBlock = [](Statement const& _st) -> bool {
|
||||
return _st.type() == typeid(Block) && boost::get<Block>(_st).statements.empty();
|
||||
return holds_alternative<Block>(_st) && std::get<Block>(_st).statements.empty();
|
||||
};
|
||||
boost::range::remove_erase_if(_block.statements, isEmptyBlock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user