IRGeneratorForStatements: Remove unnecessary code for handling internal functions with arbitrary parameters

- Internal functions cannot have arbitrary parameters
This commit is contained in:
Kamil Śliwak 2020-05-19 22:54:15 +02:00
parent 0943333276
commit 87c598863f

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) <<