Merge pull request #8997 from ethereum/sol-yul-refactor-no-internal-functions-with-arbitrary-parameters

[Sol->Yul] Remove unnecessary code for handling internal functions with arbitrary parameters (refactor)
This commit is contained in:
chriseth 2020-05-25 16:47:10 +02:00 committed by GitHub
commit 44e62c1fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -663,12 +663,11 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
else
solAssert(!functionType->bound(), "");
solAssert(!functionType->takesArbitraryParameters(), "");
vector<string> args;
for (size_t i = 0; i < arguments.size(); ++i)
if (functionType->takesArbitraryParameters())
args += IRVariable(*arguments[i]).stackSlots();
else
args += convert(*arguments[i], *parameterTypes[i]).stackSlots();
args += convert(*arguments[i], *parameterTypes[i]).stackSlots();
if (functionDef)
define(_functionCall) <<