diff --git a/libsolidity/codegen/ir/IRGenerationContext.cpp b/libsolidity/codegen/ir/IRGenerationContext.cpp index d5a926a0d..6612fc1ac 100644 --- a/libsolidity/codegen/ir/IRGenerationContext.cpp +++ b/libsolidity/codegen/ir/IRGenerationContext.cpp @@ -121,7 +121,7 @@ string IRGenerationContext::newYulVariable() return "_" + to_string(++m_varCounter); } -string IRGenerationContext::internalDispatch(YulArity const& _arity) +string IRGenerationContext::generateInternalDispatchFunction(YulArity const& _arity) { string funName = "dispatch_internal_in_" + to_string(_arity.in) + "_out_" + to_string(_arity.out); return m_functions.createFunction(funName, [&]() { diff --git a/libsolidity/codegen/ir/IRGenerationContext.h b/libsolidity/codegen/ir/IRGenerationContext.h index 2ae63ab2d..42cdddcb0 100644 --- a/libsolidity/codegen/ir/IRGenerationContext.h +++ b/libsolidity/codegen/ir/IRGenerationContext.h @@ -102,7 +102,7 @@ public: std::string newYulVariable(); - std::string internalDispatch(YulArity const& _arity); + std::string generateInternalDispatchFunction(YulArity const& _arity); /// @returns a new copy of the utility function generator (but using the same function set). YulUtilFunctions utils(); diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index 788498c06..b91ed9f2b 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -695,8 +695,8 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall) { YulArity arity = YulArity::fromType(*functionType); define(_functionCall) << - // NOTE: internalDispatch() takes care of adding the function to function generation queue - m_context.internalDispatch(arity) << + // NOTE: generateInternalDispatchFunction() takes care of adding the function to function generation queue + m_context.generateInternalDispatchFunction(arity) << "(" << IRVariable(_functionCall.expression()).part("functionIdentifier").name() << joinHumanReadablePrefixed(args) <<