mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
IRGenerator: include assertion for FunctionType::Kind::Declaration
This commit is contained in:
parent
5b92dedeed
commit
aa0a69b47f
@ -578,6 +578,9 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
|
|||||||
solUnimplementedAssert(!functionType->bound(), "");
|
solUnimplementedAssert(!functionType->bound(), "");
|
||||||
switch (functionType->kind())
|
switch (functionType->kind())
|
||||||
{
|
{
|
||||||
|
case FunctionType::Kind::Declaration:
|
||||||
|
solAssert(false, "Attempted to generate code for calling a function definition.");
|
||||||
|
break;
|
||||||
case FunctionType::Kind::Internal:
|
case FunctionType::Kind::Internal:
|
||||||
{
|
{
|
||||||
vector<string> args;
|
vector<string> args;
|
||||||
|
Loading…
Reference in New Issue
Block a user