mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use YulArity in IR generator
This commit is contained in:
@@ -692,16 +692,16 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
|
||||
joinHumanReadable(args) <<
|
||||
")\n";
|
||||
else
|
||||
{
|
||||
YulArity arity = YulArity::fromType(*functionType);
|
||||
define(_functionCall) <<
|
||||
// NOTE: internalDispatch() takes care of adding the function to function generation queue
|
||||
m_context.internalDispatch(
|
||||
TupleType(functionType->parameterTypes()).sizeOnStack(),
|
||||
TupleType(functionType->returnParameterTypes()).sizeOnStack()
|
||||
) <<
|
||||
m_context.internalDispatch(arity) <<
|
||||
"(" <<
|
||||
IRVariable(_functionCall.expression()).part("functionIdentifier").name() <<
|
||||
joinHumanReadablePrefixed(args) <<
|
||||
")\n";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FunctionType::Kind::External:
|
||||
|
||||
Reference in New Issue
Block a user