Merge pull request #8784 from ethereum/ir-declaration

IRGenerator: include assertion for FunctionType::Kind::Declaration
This commit is contained in:
chriseth 2020-04-27 13:33:47 +02:00 committed by GitHub
commit 03ca9dcae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;