mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul: Remove obsoleted FunctionalInstruction.
This commit is contained in:
@@ -37,11 +37,6 @@ void WordSizeTransform::operator()(FunctionDefinition& _fd)
|
||||
(*this)(_fd.body);
|
||||
}
|
||||
|
||||
void WordSizeTransform::operator()(FunctionalInstruction& _ins)
|
||||
{
|
||||
rewriteFunctionCallArguments(_ins.arguments);
|
||||
}
|
||||
|
||||
void WordSizeTransform::operator()(FunctionCall& _fc)
|
||||
{
|
||||
if (BuiltinFunction const* fun = m_inputDialect.builtin(_fc.functionName.name))
|
||||
@@ -111,10 +106,7 @@ void WordSizeTransform::operator()(Block& _block)
|
||||
return {std::move(ret)};
|
||||
}
|
||||
|
||||
if (
|
||||
!varDecl.value ||
|
||||
varDecl.value->type() == typeid(FunctionalInstruction) ||
|
||||
varDecl.value->type() == typeid(FunctionCall)
|
||||
if (!varDecl.value || varDecl.value->type() == typeid(FunctionCall)
|
||||
)
|
||||
{
|
||||
if (varDecl.value) visit(*varDecl.value);
|
||||
@@ -171,10 +163,7 @@ void WordSizeTransform::operator()(Block& _block)
|
||||
return {std::move(ret)};
|
||||
}
|
||||
|
||||
if (
|
||||
assignment.value->type() == typeid(FunctionalInstruction) ||
|
||||
assignment.value->type() == typeid(FunctionCall)
|
||||
)
|
||||
if (assignment.value->type() == typeid(FunctionCall))
|
||||
{
|
||||
if (assignment.value) visit(*assignment.value);
|
||||
rewriteIdentifierList(assignment.variableNames);
|
||||
|
||||
Reference in New Issue
Block a user