mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8784 from ethereum/ir-declaration
IRGenerator: include assertion for FunctionType::Kind::Declaration
This commit is contained in:
commit
03ca9dcae4
@ -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