mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Sol -> Yul Generator: Mark "return" as unimplemented
This commit is contained in:
parent
944ac6fb6d
commit
441369d5f1
@ -126,6 +126,11 @@ bool IRGeneratorForStatements::visit(Assignment const& _assignment)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IRGeneratorForStatements::visit(Return const&)
|
||||||
|
{
|
||||||
|
solUnimplemented("Return not yet implemented in yul code generation");
|
||||||
|
}
|
||||||
|
|
||||||
void IRGeneratorForStatements::endVisit(BinaryOperation const& _binOp)
|
void IRGeneratorForStatements::endVisit(BinaryOperation const& _binOp)
|
||||||
{
|
{
|
||||||
solUnimplementedAssert(_binOp.getOperator() == Token::Add, "");
|
solUnimplementedAssert(_binOp.getOperator() == Token::Add, "");
|
||||||
|
@ -46,6 +46,7 @@ public:
|
|||||||
|
|
||||||
bool visit(VariableDeclarationStatement const& _variableDeclaration) override;
|
bool visit(VariableDeclarationStatement const& _variableDeclaration) override;
|
||||||
bool visit(Assignment const& _assignment) override;
|
bool visit(Assignment const& _assignment) override;
|
||||||
|
bool visit(Return const& _return) override;
|
||||||
void endVisit(BinaryOperation const& _binOp) override;
|
void endVisit(BinaryOperation const& _binOp) override;
|
||||||
bool visit(FunctionCall const& _funCall) override;
|
bool visit(FunctionCall const& _funCall) override;
|
||||||
bool visit(InlineAssembly const& _inlineAsm) override;
|
bool visit(InlineAssembly const& _inlineAsm) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user