Sol -> Yul Generator: Mark "return" as unimplemented

This commit is contained in:
Mathias Baumann 2019-04-15 18:11:05 +02:00 committed by chriseth
parent 944ac6fb6d
commit 441369d5f1
2 changed files with 6 additions and 0 deletions

View File

@ -126,6 +126,11 @@ bool IRGeneratorForStatements::visit(Assignment const& _assignment)
return false;
}
bool IRGeneratorForStatements::visit(Return const&)
{
solUnimplemented("Return not yet implemented in yul code generation");
}
void IRGeneratorForStatements::endVisit(BinaryOperation const& _binOp)
{
solUnimplementedAssert(_binOp.getOperator() == Token::Add, "");

View File

@ -46,6 +46,7 @@ public:
bool visit(VariableDeclarationStatement const& _variableDeclaration) override;
bool visit(Assignment const& _assignment) override;
bool visit(Return const& _return) override;
void endVisit(BinaryOperation const& _binOp) override;
bool visit(FunctionCall const& _funCall) override;
bool visit(InlineAssembly const& _inlineAsm) override;