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:
@@ -64,8 +64,8 @@ void NameDisplacer::operator()(Block& _block)
|
||||
// First replace all the names of function definitions
|
||||
// because of scoping.
|
||||
for (auto& st: _block.statements)
|
||||
if (st.type() == typeid(FunctionDefinition))
|
||||
checkAndReplaceNew(boost::get<FunctionDefinition>(st).name);
|
||||
if (holds_alternative<FunctionDefinition>(st))
|
||||
checkAndReplaceNew(std::get<FunctionDefinition>(st).name);
|
||||
|
||||
ASTModifier::operator()(_block);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user