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:
@@ -29,9 +29,9 @@ void ForLoopInitRewriter::operator()(Block& _block)
|
||||
_block.statements,
|
||||
[&](Statement& _stmt) -> std::optional<vector<Statement>>
|
||||
{
|
||||
if (_stmt.type() == typeid(ForLoop))
|
||||
if (holds_alternative<ForLoop>(_stmt))
|
||||
{
|
||||
auto& forLoop = boost::get<ForLoop>(_stmt);
|
||||
auto& forLoop = std::get<ForLoop>(_stmt);
|
||||
(*this)(forLoop.pre);
|
||||
(*this)(forLoop.body);
|
||||
(*this)(forLoop.post);
|
||||
|
||||
Reference in New Issue
Block a user