diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index d8cb8f49c..a356b4e8c 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -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 args;