IRGenerator: include assertion for FunctionType::Kind::Declaration

This commit is contained in:
Alex Beregszaszi 2020-04-27 12:03:44 +01:00
parent 5b92dedeed
commit aa0a69b47f

View File

@ -578,6 +578,9 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
solUnimplementedAssert(!functionType->bound(), "");
switch (functionType->kind())
{
case FunctionType::Kind::Declaration:
solAssert(false, "Attempted to generate code for calling a function definition.");
break;
case FunctionType::Kind::Internal:
{
vector<string> args;