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:
@@ -36,8 +36,8 @@ void FunctionHoister::operator()(Block& _block)
|
||||
m_isTopLevel = false;
|
||||
for (auto&& statement: _block.statements)
|
||||
{
|
||||
boost::apply_visitor(*this, statement);
|
||||
if (statement.type() == typeid(FunctionDefinition))
|
||||
std::visit(*this, statement);
|
||||
if (holds_alternative<FunctionDefinition>(statement))
|
||||
{
|
||||
m_functions.emplace_back(std::move(statement));
|
||||
statement = Block{_block.location, {}};
|
||||
|
||||
Reference in New Issue
Block a user