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:
@@ -32,8 +32,8 @@ void BlockFlattener::operator()(Block& _block)
|
||||
_block.statements,
|
||||
[](Statement& _s) -> std::optional<vector<Statement>>
|
||||
{
|
||||
if (_s.type() == typeid(Block))
|
||||
return std::move(boost::get<Block>(_s).statements);
|
||||
if (holds_alternative<Block>(_s))
|
||||
return std::move(std::get<Block>(_s).statements);
|
||||
else
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user